Coding & Algorithms Interview Questions

Practice 3,429 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.4k Questions 368 Companies08.11.2026
Showing 20 results
Role
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Time-Based Key-Value Store

This question evaluates the ability to design a data structure that supports versioned storage and efficient point-in-time lookups. It tests binary se...

Coding & Algorithms
1
0
9 people solved
Jun 23, 2026
Reddit logo
Reddit
Medium
Software Engineer Locked

Moderator System with Ranking, Communities, and Demotion

This question tests practical data structure design and object-oriented system modeling, requiring the implementation of a hierarchical moderator mana...

Coding & Algorithms
1
0
23 people solved
Jun 23, 2026
Google logo
Google
Medium
Software EngineerNew Grad

Design a restaurant waitlist system

You are implementing the waitlist system for a restaurant. Parties arrive over time, can cancel, and get seated when a table becomes available. Rules ...

Coding & Algorithms
109
2
1266 people solved
Mar 1, 2026
Anthropic logo
Anthropic
Hard
Software Engineer

Build a Progressive Cloud Storage System

Build a Progressive Cloud Storage System The source reports four storage stages but not the exact API. The command encoding, quota accounting, compres...

Coding & Algorithms
1
0
25 people solved
Jul 8, 2026
Google logo
Google
Easy
Software Engineer Locked

Busiest Rental Car

This question evaluates a candidate's ability to simulate a resource-allocation process using interval scheduling and greedy assignment rules. It test...

Coding & Algorithms
5
0
18 people solved
Jun 22, 2026
Target logo
Target
Medium
Backend Engineer

Count Lucky Numbers in an Inclusive Range

Count Lucky Numbers in an Inclusive Range Problem A positive integer x is lucky when it is divisible by floor(sqrt(x)). Implement countLuckyNumbers(le...

Coding & Algorithms
0
0
3 people solved
Jul 15, 2026
Stripe logo
Stripe
Medium
Software Engineer

Schedule Weekly Deployment Windows

Schedule Weekly Deployment Windows The source reports a weekly deployment-window scheduler. The absolute-time horizon, cyclic start == end rule, and c...

Coding & Algorithms
4
0
40 people solved
May 9, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Solve Parser, Trading, Tree, And Deck Tasks

You will solve several independent programming tasks. For each task, implement clean, tested code and state the time and space complexity. 1. Validate...

Coding & Algorithms
5
0
35 people solved
Apr 9, 2026
Bloomberg logo
Bloomberg
Medium
Software EngineerSenior+ Locked

Solve Grid Path and Unique Substring

This question evaluates algorithmic problem solving skills in grid traversal and stateful string processing, specifically testing understanding of pat...

Coding & Algorithms
19
0
141 people solved
Jan 29, 2026
Truefoundry logo
Truefoundry
Medium
Software Engineer

Query a Versioned Array

Query a Versioned Array A fixed-length array starts with all values equal to zero. Process update, save, and get operations. An update changes one ind...

Coding & Algorithms
0
0
1 people solved
Aug 1, 2026
Truefoundry logo
Truefoundry
Medium
Software Engineer

Verify Ordering Under a Scrambled Alphabet

Verify Ordering Under a Scrambled Alphabet Given a sequence of words and an alphabet string that lists every allowed character from smallest to larges...

Coding & Algorithms
0
0
1 people solved
Aug 1, 2026
Lyft logo
Lyft
Medium
Software Engineer

Assign Tasks to the Minimum Number of Workers

Assign Tasks to the Minimum Number of Workers Problem Implement assignMinimumWorkers(tasks) -> workerIds. Each task is [startMinute, durationMinutes]....

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

Solve chat, grid paths, and car rentals

You are given three independent programming tasks. For each, describe and implement an efficient algorithm, and be prepared to analyze its time and sp...

Coding & Algorithms
14
0
189 people solved
Dec 2, 2025
Capital One logo
Capital One
Medium
Software Engineer

Build a Banking System with Activity Rankings

Build a Banking System with Activity Rankings Problem Implement an in-memory banking system that processes these operations: - CREATE_ACCOUNT account_...

Coding & Algorithms
2
0
20 people solved
Jul 4, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Find a Path Between Nodes in a Fibonacci Tree

Practice a Databricks coding interview problem focused on find a path between nodes in a fibonacci tree. The prompt emphasizes edge cases, clean imple...

Coding & Algorithms
1
0
15 people solved
May 30, 2026
LinkedIn logo
LinkedIn
Medium
Software Engineer Locked

Longest Run of Ones After One Flip

This question tests a candidate's ability to solve a sliding window problem involving binary arrays, extending the basic "maximum consecutive ones" pa...

Coding & Algorithms
1
0
12 people solved
Jun 23, 2026
Citadel logo
Citadel
Medium
Software Engineer

Perform an External Merge Sort with a Heap

Perform an External Merge Sort with a Heap Sort an integer sequence using the two phases of external merge sort: create sorted runs that fit within a ...

Coding & Algorithms
2
0
21 people solved
Jul 12, 2026
Oracle logo
Oracle
Hard
Software Engineer

Implement Queue Operations Using Two Stacks

Implement Queue Operations Using Two Stacks Process a sequence of queue operations using exactly two LIFO stacks as the queue's internal data structur...

Coding & Algorithms
1
0
22 people solved
May 1, 2026
Chalk logo
Chalk
Hard
Software Engineer

Implement Python feature and resolver metaprogramming

You are given a skeleton for a small Python "feature" framework. The goal is to use metaprogramming to: 1. Parse type-annotated classes into Feature o...

Coding & Algorithms
77
0
564 people solved
Sep 27, 2025
Netflix logo
Netflix
Medium
Software Engineer Locked

Solve String Arrays and Row Deduplication

This multi-part question evaluates array and string manipulation skills, deduplication logic and pairwise character comparison, as well as the ability...

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