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
Molocoads logo
Molocoads
Hard
Software Engineer

Support Dynamic Range Sums

Implement a data structure over an integer array nums. Part 1: If the array never changes, support sumRange(left, right) that returns the sum of eleme...

Coding & Algorithms
2
0
39 people solved
Apr 12, 2026
Ramp logo
Ramp
Medium
Software Engineer Locked

Build a simplified Wordle game in React

This question evaluates a candidate's competency in React-based front-end development, covering component design, state management, asynchronous HTTP ...

Coding & Algorithms
20
0
160 people solved
Jan 18, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Compute unmatched parentheses length

This question evaluates string-processing skills and understanding of parentheses matching and cancellation, focusing on linear-time sequence analysis...

Coding & Algorithms
4
0
44 people solved
Jan 18, 2026
Apple logo
Apple
Medium
Software Engineer

Refactor rock–paper–scissors for config and ties

Refactor an existing Rock–Paper–Scissors tournament with three robot players so that the number of rounds is configurable and the system also tracks t...

Coding & Algorithms
7
0
132 people solved
Sep 6, 2025
Roblox logo
Roblox
Medium
Software Engineer

Implement queue-based rate limiter with multi-key limits

Implement a rate limiter with method allow(timestamp) that returns true if a request is allowed under a limit of K requests per rolling window W milli...

Coding & Algorithms
18
0
234 people solved
Sep 6, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Implement tree traversals, BFS, and subsets generation

1) Define a TreeNode class for a binary tree with an integer value and left/right pointers. Implement preorder, inorder, and postorder traversals: (a)...

Coding & Algorithms
5
0
75 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Merge overlapping and adjacent ranges

Given an unsorted list of integer ranges represented as half-open intervals [start, end) with start < end, merge all overlapping or directly adjacent ...

Coding & Algorithms
3
0
36 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Traverse binary tree by levels with constraints

Given a binary tree and a predicate P(node), perform a level-by-level traversal that collects, for each level, only the nodes whose values satisfy P. ...

Coding & Algorithms
2
0
37 people solved
Sep 6, 2025
Adobe logo
Adobe
Medium
Software Engineer

Determine task order with prerequisites

You are given n tasks labeled 0..n−1 and a list of prerequisite pairs (a, b) meaning task b must be completed before task a. Determine one valid order...

Coding & Algorithms
10
0
70 people solved
Sep 6, 2025
Tesla logo
Tesla
Medium
Software Engineer

Design a contiguous segment allocator

Design an in-memory contiguous segment allocator over an array of n cells (indexed 0..n- 1), all initially free. Support two operations: 1) allocate(l...

Coding & Algorithms
12
0
102 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Compute split-stay listing pairs

Given a set of Airbnb listings, each with availability represented as a sorted list of day integers, and a requested inclusive date range [S, E], comp...

Coding & Algorithms
55
0
539 people solved
Sep 6, 2025
TikTok logo
TikTok
Medium
Software Engineer

Find >n/3 elements in sorted array

Question Given a sorted (non-decreasing) integer array A of length n, return all distinct values that occur strictly more than n/3 times. Design an al...

Coding & Algorithms
4
0
33 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Software Engineer

Design a queue and analyze tradeoffs

Design a FIFO queue data structure that supports enqueue, dequeue, peek, and isEmpty. Compare implementations using a singly linked list, a dynamic ar...

Coding & Algorithms
39
0
327 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Implement prioritized refund allocation engine

Implement a refund allocation function that takes: (a) a list of payments, each with a unique paymentId, method ∈ {CREDIT, CREDIT_CARD, PAYPAL}, ISO-8...

Coding & Algorithms
27
2
223 people solved
Sep 6, 2025
Meta logo
Meta
Medium
Software Engineer

Implement merge-in-place and group cyclic-equivalent strings

You are given two ascending arrays to merge in place and a separate grouping task: Part A — In-place merge without known sizes: - Array A contains sor...

Coding & Algorithms
5
0
49 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

Maximize Boundary-Difference Subarray Sum

Given an integer array nums and an integer k, find the maximum possible sum of a non-empty contiguous subarray whose first and last elements differ by...

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

Build a File-Backed Key-Value Store

This question evaluates a candidate's understanding of persistent key-value storage, in-memory versus on-disk state management, serialization/deserial...

Coding & Algorithms
6
0
64 people solved
Apr 11, 2026
Ramp logo
Ramp
Hard
Software Engineer

Track Users From Flight History

You are given an unsorted list of flight records. Each record contains departure_airport, departure_time, arrival_airport, arrival_time, and user_id. ...

Coding & Algorithms
8
0
125 people solved
Jan 17, 2026
Uber logo
Uber
Hard
Software Engineer Locked

Determine Threshold-Constrained Connectivity

This question evaluates understanding of graph algorithms and constrained connectivity, testing skills in reasoning about weighted undirected graphs, ...

Coding & Algorithms
4
0
71 people solved
Jan 17, 2026
Microsoft logo
Microsoft
Medium
Software EngineerSenior+

Implement SQL Table and DNA Ordering

Two independent coding exercises were asked. Solve both. Problem A: CSV-backed in-memory table Build a tiny in-memory relational table initialized fro...

Coding & Algorithms
2
0
28 people solved
Apr 10, 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