Software Engineer Coding & Algorithms Interview Questions

Practice 2,712 real Coding & Algorithms interview questions for Software Engineer roles. From companies including Meta, Amazon, Google, Uber, Microsoft.

2.7k Questions 325 Companies08.16.2026
Showing 20 results
Role
Atlassian logo
Atlassian
Medium
Software Engineer

Find LCA in organization tree

Find LCA in organization tree Given an organizational hierarchy tree, return the lowest common organization (parent node) for two or more employees (≥...

Coding & Algorithms
12
0
91 people solved
Aug 4, 2025
LinkedIn logo
LinkedIn
Medium
Software Engineer

Merge two N-ary trees by key rules

You are given two N-ary trees A and B. Each node has: - key (string): unique among siblings (i.e., within a node’s children list, no two children shar...

Coding & Algorithms
41
0
279 people solved
Nov 21, 2025
Oracle logo
Oracle
Medium
Software Engineer

Implement an LRU cache

Design and implement a data structure for a Least Recently Used (LRU) cache with a fixed capacity. The cache must support: - get(key): return the valu...

Coding & Algorithms
8
0
72 people solved
Jan 26, 2026
Oscar logo
Oscar
Medium
Software Engineer

Solve Morse and Network Access Tasks

Solve the following two independent coding problems. Problem 1: Convert Between Text and Morse Code You are given the standard Morse-code mapping for ...

Coding & Algorithms
3
0
48 people solved
Apr 15, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Implement A Contiguous Memory Allocator With Free-Block Coalescing

Review a contiguous memory allocator coding prompt with malloc, free, first-fit allocation, block coalescing, and a best-fit follow-up. The interview ...

Coding & Algorithms
22
1
166 people solved
Jun 5, 2026
Mavenclinic logo
Mavenclinic
Medium
Software Engineer Locked

Check Meeting Attendance With Breaks

This question evaluates proficiency with interval scheduling, time-format conversion, and constraint checking for sequential appointments, measuring a...

Coding & Algorithms
0
0
6 people solved
Jun 5, 2026
Intuit logo
Intuit
Easy
Software Engineer Locked

Add One to Digit Array

This question evaluates proficiency in array manipulation and elementary arithmetic on digit sequences, specifically carrying operations and edge-case...

Coding & Algorithms
1
2
21 people solved
Jun 5, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Implement Datacenter Router Commands

This question evaluates proficiency in stateful command processing, input validation, geospatial computation (Haversine distance), deterministic sorti...

Coding & Algorithms
2
0
16 people solved
Jun 5, 2026
Meta logo
Meta
Medium
Software Engineer

Find Any Local Minimum with Iterative Binary Search

Find Any Local Minimum with Iterative Binary Search Given a nonempty integer array numbers, return the index of any local minimum. An index i is a loc...

Coding & Algorithms
0
0
14 people solved
Mar 2, 2026
BlackRock logo
BlackRock
Easy
Software Engineer Locked

Traverse a tree and answer 2D prefix sums

This question evaluates a candidate's competency in tree traversal and array preprocessing, specifically in-order traversal of binary trees and 2D pre...

Coding & Algorithms
10
0
69 people solved
Jan 22, 2026
Robinhood logo
Robinhood
Medium
Software EngineerSenior+ Locked

Design a constrained cache and secure string validator

This question evaluates proficiency in data structures and algorithms (constrained cache design), concurrent programming, complexity analysis, and sec...

Coding & Algorithms
5
0
100 people solved
Jan 22, 2026
Databricks logo
Databricks
Hard
Software EngineerNew Grad Locked

Optimize a SQL query plan tree

This question evaluates understanding of relational algebra, query optimization techniques, and tree-based plan transformations such as predicate push...

Coding & Algorithms
7
0
66 people solved
Jan 22, 2026
Databricks logo
Databricks
Medium
Software EngineerNew Grad

Design KV store with sliding-window average QPS

Problem Design an in-memory key–value store that supports mutation operations and can report the average QPS (queries per second) over a recent time w...

Coding & Algorithms
27
0
363 people solved
Dec 17, 2025
Amazon logo
Amazon
Easy
Software Engineer

Compute minimal operations and optimal server pairing

You are given two independent coding problems. Problem 1: Minimum range-increments to make an array nondecreasing Given an integer array power of leng...

Coding & Algorithms
16
0
116 people solved
Dec 17, 2025
Decagon logo
Decagon
Medium
Software Engineer

Compute exclusive CPU time from nested logs

You are given logs from a single-threaded CPU that runs n functions (IDs 0 to n-1). Each log entry is a string in the format: - "functionId:start:time...

Coding & Algorithms
12
0
206 people solved
Mar 1, 2026
Decagon logo
Decagon
Easy
Software Engineer Locked

Design rolling-window conversation score tracker

This question evaluates a candidate's ability to design efficient data structures and algorithms for time-windowed streaming data, including maintaini...

Coding & Algorithms
17
0
209 people solved
Mar 1, 2026
Elastic logo
Elastic
Medium
Software Engineer

Implement log aggregation in React

React Coding: Log stream aggregation You are building a small React feature that displays real-time statistics from a log stream. Log event format Eac...

Coding & Algorithms
8
0
62 people solved
Nov 13, 2025
Amazon logo
Amazon
Hard
Software Engineer Locked

Find the Maximum Number of Concurrent Processes

Practice a Amazon coding interview problem focused on find the maximum number of concurrent processes. The prompt emphasizes edge cases, clean impleme...

Coding & Algorithms
0
0
8 people solved
Jun 4, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Find the Closest Version by Date

Practice a Amazon coding interview problem focused on find the closest version by date. The prompt emphasizes edge cases, clean implementation, and ve...

Coding & Algorithms
0
0
6 people solved
Jun 4, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Choose the Best Travel Mode

Solve a grid-based pathfinding problem where a traveler must choose the transportation mode with the lowest travel time and cost tie-breakers. The que...

Coding & Algorithms
1
0
5 people solved
Jun 4, 2026

Explore more Software Engineer Coding & Algorithms interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Software Engineer
Coding & Algorithms questions for other roles
Browse all