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
Hard
Backend EngineerNew Grad Locked

Determine If One Binary Tree Is a Substructure of Another

This question evaluates practical tree traversal skills and the ability to implement structural matching between two binary trees. It tests recursive ...

Coding & Algorithms
0
1
14 people solved
Jun 15, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad Locked

Detect and Break a Cycle in a Singly Linked List

This question tests practical knowledge of linked list traversal and pointer manipulation, specifically the ability to detect and resolve cycles using...

Coding & Algorithms
0
0
13 people solved
Jun 15, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad Locked

Minimum Bills and Coins to Make Change

This question tests a candidate's grasp of greedy algorithms applied to a classic coin-change problem with fixed denominations. It evaluates practical...

Coding & Algorithms
1
0
11 people solved
Jun 15, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad Locked

Minimum Drone Delivery Time on a Ring of Hubs

This question tests a candidate's grasp of circular graph traversal and greedy distance minimization on ring-structured topologies. It evaluates algor...

Coding & Algorithms
0
0
7 people solved
Jun 15, 2026
Google logo
Google
Medium
Software Engineer Locked

Determine Whether a Word Exists in a Graph

This question evaluates proficiency in graph algorithms and backtracking techniques, including traversal strategies, cycle avoidance, and state manage...

Coding & Algorithms
6
2
37 people solved
May 2, 2026
Google logo
Google
Hard
Software EngineerSenior+ Locked

Solve order-statistics and XOR-triplet problems

This multi-part question evaluates skills in order-statistics and efficient counting for array inversion-like problems, alongside bitwise manipulation...

Coding & Algorithms
21
0
186 people solved
Jan 22, 2026
Netflix logo
Netflix
Medium
Software Engineer Locked

Return the longest contiguous subarray with all distinct values

This question evaluates a candidate's understanding of array-processing algorithms, duplicate detection, and maintaining state to identify the longest...

Coding & Algorithms
15
0
282 people solved
Jan 22, 2026
Karat logo
Karat
Medium
Software Engineer

Join tables to map userId to name

Problem You are given three tables represented as 2D string arrays (each row is a record, no headers). You need to produce a mapping from userId → cus...

Coding & Algorithms
3
0
55 people solved
Jan 22, 2026
Citadel logo
Citadel
Medium
Software Engineer

Implement a single-producer multi-consumer ring buffer

Implement a fixed-capacity ring buffer in C++ for a setting with one producer and multiple consumers. Design a class that stores integers in a preallo...

Coding & Algorithms
15
0
138 people solved
Feb 21, 2026
Box logo
Box
Medium
Software Engineer

Compute Top-K word frequencies under a path

Compute Top-K word frequencies under a path Given a filesystem path that may contain nested subdirectories and files, compute the top K most frequent ...

Coding & Algorithms
25
0
177 people solved
Aug 1, 2025
Uber logo
Uber
Medium
Software Engineer Locked

Evaluate an Arithmetic Expression

This question evaluates proficiency in parsing arithmetic expressions, handling unary and binary operators, parentheses, whitespace, numeric tokenizat...

Coding & Algorithms
1
0
9 people solved
May 1, 2026
Google logo
Google
Medium
Software Engineer AI

Implement Checksums and Feature Rollout Evaluation

Complete the following two coding tasks in a 90-minute online assessment. An AI coding assistant may be available, but the submitted code must pass th...

Coding & Algorithms
7
0
44 people solved
Apr 30, 2026
Coinbase logo
Coinbase
Medium
Software Engineer

Generate constrained NFT metadata

Generate constrained NFT metadata Given a set of trait types (e.g., background, eyes, hat), each with a list of allowed values, and a target count N, ...

Coding & Algorithms
15
0
117 people solved
Jul 26, 2025
Airbnb logo
Airbnb
Hard
Software EngineerSenior+

Find valid split-stay listing combinations

You are building a feature that suggests a split stay: a guest stays in one home for the first part of a trip, then switches to a second home for the ...

Coding & Algorithms
140
2
914 people solved
Dec 20, 2025
Stripe logo
Stripe
Medium
Software Engineer Locked

Validate transactions with risk rules and reporting

This question evaluates skills in CSV parsing and input validation, numerical and timestamp parsing, rule-based fraud detection and behavioral feature...

Coding & Algorithms
11
1
137 people solved
Jan 17, 2026
Stripe logo
Stripe
Medium
Software Engineer AI

Assign Reviewers from Changed Files

Write a Java program that helps automatically assign a code reviewer after a pull request is opened. You are given: 1. A local Git repository path. 2....

Coding & Algorithms
2
0
19 people solved
Apr 29, 2026
Coinbase logo
Coinbase
Hard
Software Engineer AI Locked

Implement a Coin-Constrained Jump Strategy

This question evaluates a candidate's ability to design a stateful decision-making strategy combining physics-based motion reasoning, resource-constra...

Coding & Algorithms
2
0
44 people solved
Apr 29, 2026
Robinhood logo
Robinhood
Medium
Backend Engineer Locked

Count and Rank Words in a Paragraph

Count case-insensitive ASCII words in a paragraph and return deterministic frequency rankings. Tokenize maximal letter runs, normalize to lowercase, s...

Coding & Algorithms
1
0
10 people solved
Jun 13, 2026
Coinbase logo
Coinbase
Medium
Software Engineer

Implement Composable Range Iterators

Implement an iterator library: range(start, end, step= 1) supporting forward/backward iteration, inclusive/exclusive endpoints, negative steps, and ov...

Coding & Algorithms
13
0
173 people solved
Sep 6, 2025
Figma logo
Figma
Medium
Software Engineer

Design document layer with undo/redo

Design a document layer that supports applying edits and undo/redo. Implement apply(op) to mutate the document, undo() to revert the most recent commi...

Coding & Algorithms
23
0
317 people solved
Sep 6, 2025

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