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
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Reverse Linked List Groups

This question evaluates linked list manipulation, pointer/reference management, in-place iterative algorithms, and the ability to enforce O(1) extra s...

Coding & Algorithms
1
0
12 people solved
May 28, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Replace Delimited Tokens in a String

This question evaluates string parsing, token recognition, and dictionary lookup competencies for robust text replacement, including handling malforme...

Coding & Algorithms
2
0
15 people solved
May 28, 2026
Sierra logo
Sierra
Hard
Software Engineer

Split Markdown Into Header-Aware Chunks

Implement a function that splits a Markdown document into ordered chunks, where each chunk must not exceed a given size limit. A Markdown header is a ...

Coding & Algorithms
4
0
63 people solved
Apr 3, 2026
Netflix logo
Netflix
Medium
Software EngineerSenior+

Implement Caches, Undo, and Traversal

Solve the following coding tasks. For each task, define clean APIs, implement the core logic, and be prepared to explain time and space complexity. Ta...

Coding & Algorithms
5
0
49 people solved
Apr 3, 2026
Robinhood logo
Robinhood
Medium
Software Engineer Locked

Solve path and inventory problems

This question evaluates algorithmic problem-solving skills around numeric robustness and stateful stream processing, specifically testing reasoning ab...

Coding & Algorithms
9
0
58 people solved
Apr 3, 2026
OpenAI logo
OpenAI
Medium
Machine Learning Engineer Locked

Simulate Plant Infection Spread

This question evaluates graph traversal and grid-based simulation skills, including modeling a 2D grid as a graph, propagation dynamics with obstacles...

Coding & Algorithms
6
0
75 people solved
Apr 3, 2026
Tubitv logo
Tubitv
Medium
Software Engineer

Execute TTL Cache Operations with Fetch-on-Miss

Execute TTL Cache Operations with Fetch-on-Miss Implement a pure simulator for a TTL cache. The simulator includes put, get, delete, size, and a deter...

Coding & Algorithms
0
0
8 people solved
Feb 16, 2026
Databricks logo
Databricks
Medium
Software Engineer

Implement Snapshot Iterator Without Order Guarantees

Design and implement a mutable collection that supports snapshot iteration. The collection stores unique values and supports the following operations:...

Coding & Algorithms
1
0
13 people solved
Feb 16, 2026
Google logo
Google
Hard
Machine Learning Engineer Locked

Solve several streaming, DAG, and DP tasks

This multi-part question evaluates proficiency in streaming and online algorithms, DAG-based scheduling and parallelism reasoning, and constrained dyn...

Coding & Algorithms
13
1
150 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Match payments to invoices with fallback rules

This question evaluates a candidate's ability to design robust record-matching logic that handles identifier-based matches, fallback heuristics, and n...

Coding & Algorithms
6
0
59 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Minimize total factory cost with distance penalties

This question evaluates dynamic programming and sequence optimization skills, focusing on modeling cumulative build costs with adjacency distance pena...

Coding & Algorithms
5
0
39 people solved
Jan 6, 2026
CloudKitchens logo
CloudKitchens
Medium
Software Engineer

Implement concurrent order-accept/pickup simulator

Concurrent restaurant order + pickup simulator Design and implement a thread-safe simulation for a restaurant that: - Receives incoming orders concurr...

Coding & Algorithms
10
0
110 people solved
Aug 20, 2025
Pinterest logo
Pinterest
Medium
Software EngineerSenior+

Settle Group Expenses with Transfers

You are given a list of group expense transactions from a trip. Each transaction contains: - payer: the person who paid the full amount. - amount: the...

Coding & Algorithms
2
0
17 people solved
Jan 5, 2026
Datadog logo
Datadog
Medium
Software Engineer AI

Implement a Snowflake Query Client

Build a lightweight query client for a Snowflake-like data warehouse. Implement a QueryClient that can: 1. Connect to the warehouse using configuratio...

Coding & Algorithms
6
0
56 people solved
Apr 2, 2026
Coinbase logo
Coinbase
Hard
Software Engineer AI

Implement Game Physics and Block Mining

You are given two independent coding tasks from the same interview category. Solve both. Task A: Flappy-Bird-Style Jump Boundary Function Implement a ...

Coding & Algorithms
28
0
211 people solved
Apr 2, 2026
Waymo logo
Waymo
Medium
Software Engineer Locked

Validate a Parent-Child Forest

This question evaluates understanding of graph theory concepts—specifically rooted trees, parent-child relationships, cycle detection, and node in-deg...

Coding & Algorithms
1
0
11 people solved
May 27, 2026
Optiver logo
Optiver
Medium
Software Engineer

Estimate expected comparisons in a BST

Estimate expected comparisons in a BST In a particular binary search tree, finding node A takes 1 comparison and finding node D takes 3 comparisons. W...

Coding & Algorithms
17
0
140 people solved
Jul 17, 2025
Meta logo
Meta
Medium
Software Engineer AI

Implement an Expiring Record Store

Implement a level-based in-memory record store. The store contains records identified by a string key. Each record contains fields, where each field i...

Coding & Algorithms
2
0
32 people solved
Apr 1, 2026
Lead Bank logo
Lead Bank
Medium
Software Engineer

Implement Stock Price Query APIs

You are given an initial collection of stock price records. Each record contains: - symbol: a stock name or ticker string - timestamp: initially a cal...

Coding & Algorithms
0
0
11 people solved
Apr 1, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Implement fast power and k-palindrome

This question evaluates numerical algorithm design and string algorithm skills, focusing on efficient exponentiation with negative exponents and deter...

Coding & Algorithms
5
0
44 people solved
Apr 1, 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