Coding & Algorithms Interview Questions

Practice 3,469 real Coding & Algorithms interview questions for 2026. Covers companies like Meta, Amazon, Google, Uber, and Microsoft. Real questions from actual interviews with detailed solutions — ideal for focused interview preparation. Coding & Algorithms interview questions are the single most common technical gate for software engineering roles and are used to evaluate problem framing, algorithm selection, complexity trade-offs, correctness, edge-case reasoning, and clear communication under time pressure. Expect this category to appear in early technical screens and repeatedly across onsite loops at companies that weight it heavily (notably Meta, Google, and Amazon). Interviews will test arrays and strings, trees and graphs, dynamic programming, hashing and two‑pointer techniques, and the candidate’s ability to test and optimize code in a shared editor. Prepare with timed mock interviews, practice in the same editor you’ll use live, and build a progressive schedule that moves from fundamentals to medium/hard problems; typical candidates invest several weeks to a few months of focused practice depending on seniority and target company.

3.5k Questions 368 Companies08.11.2026
Showing 20 results
Role
Meta logo
Meta
Medium
Software EngineerSenior+ AI Locked

Solve Tree Columns And Maze Variants

This question evaluates tree traversal and column-based grouping skills along with grid-based graph search, state modeling, and handling dynamic maze ...

Coding & Algorithms
2
0
22 people solved
May 21, 2026
OpenAI logo
OpenAI
Hard
Software Engineer

Implement Persistent KV Store Serialization

Implement a persistent in-memory key-value store. Requirements: - Keys and values are arbitrary byte strings or UTF-8 strings; do not rely on delimite...

Coding & Algorithms
7
0
41 people solved
Apr 20, 2026
Datadog logo
Datadog
Hard
Software Engineer

Implement Prefix Match Filter

Design a data structure that stores a collection of prefix strings. Then, given a list of input strings, return every string that begins with at least...

Coding & Algorithms
12
0
92 people solved
Feb 25, 2026
Optiver logo
Optiver
Medium
Software Engineer

Thread-Safe Stock Inventory: Buy and Sell Without Overselling

Thread-Safe Stock Inventory: Buy and Sell Without Overselling You are implementing the inventory-management core of a small brokerage service. The ser...

Coding & Algorithms
2
0
22 people solved
Apr 19, 2026
Rippling logo
Rippling
Medium
Software Engineer AI

Implement logger and card ranking

This coding round contains two independent implementation tasks. Task A: Implement a configurable logger Implement a Logger component that accepts tex...

Coding & Algorithms
18
2
132 people solved
Apr 19, 2026
Apple logo
Apple
Medium
Software Engineer

Solve 15 common Apple coding questions

The post summarizes high-frequency coding problems reported for Apple Software Engineer interviews. Practice the following algorithm and data-structur...

Coding & Algorithms
25
0
182 people solved
Jan 30, 2026
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Maximize Boxes Stored Through One Entrance

This question evaluates array manipulation, constraint reasoning, and optimization skills, touching on greedy and combinatorial allocation concepts un...

Coding & Algorithms
2
0
28 people solved
May 19, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Fix a Corrupted Bootloader Instruction

This question evaluates the ability to simulate instruction-level program execution, reason about control flow and mutable program state (instruction ...

Coding & Algorithms
9
0
51 people solved
May 19, 2026
Roblox logo
Roblox
Medium
Software Engineer

Detect robot state after movements

Detect robot state after movements Implement an algorithm to determine whether a robot following a given set of movement instructions ends in a valid ...

Coding & Algorithms
10
0
173 people solved
Aug 4, 2025
Oracle logo
Oracle
Medium
Software Engineer

Count anagram-based replacements per phrase

Problem You are given: - phrases: a list of strings, where each string is a phrase containing words separated by single spaces. - words: a list of str...

Coding & Algorithms
13
0
93 people solved
Dec 15, 2025
Airbnb logo
Airbnb
Medium
Machine Learning Engineer Locked

Minimize exact layover bookings

This question evaluates algorithmic problem-solving and numeric precision handling, specifically the ability to model exact-duration sums and minimize...

Coding & Algorithms
10
1
75 people solved
Jan 5, 2026
Google logo
Google
Medium
Software Engineer

Design server allocation for multi-type nodes

Design a service to manage a large pool (about 100, 000) of server nodes. Each node can satisfy multiple instance types; clients call getServer(reqNum...

Coding & Algorithms
8
0
125 people solved
Sep 6, 2025
Otter.Ai logo
Otter.Ai
Medium
Software Engineer Locked

In-Memory Key-Value Store with Nested Transactions

This question evaluates a candidate's ability to design an in-memory data structure that supports layered, nested transactional state with commit and ...

Coding & Algorithms
1
0
8 people solved
Jun 25, 2026
Mistral AI logo
Mistral AI
Hard
Software Engineer

Compute Remaining GPUs With Switching Limits

Suppose you manage n GPU clusters with fixed daily capacities capacity[i]. Each day starts fresh with the full capacity, because all GPUs are returned...

Coding & Algorithms
6
0
40 people solved
Apr 16, 2026
Apple logo
Apple
Medium
Machine Learning Engineer Locked

Find Minimum Processing Rate

This question evaluates algorithmic problem-solving skills, discrete mathematics involving integer division and ceiling operations, and complexity ana...

Coding & Algorithms
1
0
14 people solved
May 17, 2026
Glean logo
Glean
Medium
Software Engineer Locked

Return Top Department Suggestions

This question evaluates proficiency in prefix-based search and top-k ranking, familiarity with in-memory data structures and preprocessing strategies,...

Coding & Algorithms
2
0
17 people solved
May 17, 2026
Wells Fargo logo
Wells Fargo
Medium
Software EngineerSenior+ Locked

Highest Salary Using Java Streams

This question tests a software engineer's practical proficiency with the Java Stream API, specifically the ability to perform aggregate operations on ...

Coding & Algorithms
0
0
11 people solved
Jun 24, 2026
Bytedance logo
Bytedance
Hard
Software Engineer

Implement Expiring LRU Cache

Implement an in-memory key-value cache with least-recently-used eviction and per-entry expiration. The cache has a fixed positive capacity. Each inser...

Coding & Algorithms
1
0
17 people solved
Apr 14, 2026
OpenAI logo
OpenAI
Easy
Software Engineer

Design a Versioned Social Follow Graph with Friend Recommendations

Design a Versioned Social Follow Graph with Friend Recommendations Build an in-memory service that maintains a directed follow graph between users and...

Coding & Algorithms
2
1
8 people solved
Mar 16, 2026
Pinduoduo logo
Pinduoduo
Hard
Software Engineer Locked

Find Shortest Square-Sum Path

This question evaluates algorithmic problem-solving skills with number-theoretic reasoning about perfect squares and the ability to reconstruct a mini...

Coding & Algorithms
0
0
6 people solved
May 16, 2026

Frequently Asked Questions

How difficult are Coding & Algorithms interview questions?
Difficulty spans a wide range: from quick easy warm-ups to multi-stage hard problems that require advanced data structures or algorithmic proofs. Most companies place a majority of live coding rounds at the medium level, with occasional hard questions used to distinguish senior candidates. Interviewers evaluate problem framing, algorithm choice, time/space complexity, clean implementation, and thoughtful testing under time pressure. Expect more conceptual depth at Google, more consistent medium-to-hard screens at Meta, and Amazon to mix coding with leadership signals. Leveling depends on role and seniority: entry-level focuses on fundamentals; senior roles emphasize design, optimizations, and tradeoffs.
Where does Coding & Algorithms appear in a typical interview loop, and which companies weight it most heavily?
Coding & Algorithms is usually the first technical hurdle: it appears in phone/online screens, followed by one or more onsite or virtual coding rounds during the loop. Typical sequences are a technical screen, two to three in-loop coding sessions, then system design or behavioral rounds. Companies that weight this category heavily include Google, Meta, and Amazon, where coding performance often determines whether you progress. Candidates commonly concentrate practice for weeks or months beforehand; most targeting large tech firms prepare intensively for 6–12 weeks, while some spend 3–6 months for deeper mastery or level changes.
How long should I prepare and how should I structure that preparation?
Plan focused, progressive practice over a realistic timeline. A practical structure is an 8–12 week block: weeks 1–2 solidify fundamentals and language fluency; weeks 3–6 target core patterns (arrays, trees, graphs, DP) with timed problem sessions and pattern tagging; weeks 7–9 emphasize mock interviews, end-to-end problem solving, and optimization tradeoffs; final weeks simulate real loops with full-length sessions and targeted weak-point drills. Candidates with less experience may extend to 12–16 weeks. Regularly review mistakes, practice communicating solutions aloud, and include at least one weekly mock interview with peer or coach feedback.
What key subtopics and patterns should I master for Coding & Algorithms interviews?
Master a consistent set of patterns and their variations: arrays and strings (two pointers, sliding window), hash maps and frequency counts, sorting and binary search, recursion and backtracking, dynamic programming, trees and traversals, graphs (BFS/DFS, shortest paths, union-find), heaps and priority queues, and greedy algorithms. Also practice complexity analysis, space-time tradeoffs, and writing bug-resistant code with tests. For higher levels, focus on amortized analysis, advanced graph algorithms, segment trees or Fenwick trees, and system-aware optimizations. Interviewers value reusable problem templates and the ability to generalize patterns to new prompts.
What are standout tips and common pitfalls to avoid in Coding & Algorithms interviews?
Start by clarifying requirements and constraints, then outline your approach before coding. Write a correct, readable baseline solution first, then iterate to improve complexity while narrating tradeoffs. Test with simple and edge cases, and handle nulls, off-by-one, and empty inputs explicitly. Communicate continuously; silence looks like confusion. Avoid premature optimization, overcomplicating solutions, or ignoring interviewer hints. Time management matters: if stuck, discuss alternate approaches and code a partial solution. Finally, practice mock interviews to reduce anxiety and build the habit of clear, structured explanations under pressure.

Explore more Coding & Algorithms interview questions

Jump straight to Coding & Algorithms questions at a specific company or for a specific role.

By company
By role