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
Software Engineer

Find the Minimum Number of Meeting Rooms

Find the Minimum Number of Meeting Rooms You are given meeting intervals [start, end], where start < end. A room can host at most one meeting at a tim...

Coding & Algorithms
1
0
9 people solved
Apr 28, 2026
Two Sigma logo
Two Sigma
Hard
Software Engineer

Implement an In-Memory Database

Implement a simple in-memory relational database that processes a sequence of tokenized commands. You are given commands: List[List[str]], where each ...

Coding & Algorithms
6
0
46 people solved
Apr 2, 2026
Coinbase logo
Coinbase
Medium
Backend EngineerSenior+ Locked

Implement a Stateful Trading Order Manager

Build a stateful trading order manager with deterministic command results, lifecycle transitions, bulk cancellation, and live-order display. Assign us...

Coding & Algorithms
1
0
12 people solved
Jun 12, 2026
eBay logo
eBay
Medium
Software Engineer Locked

Wildcard Dictionary Matching

This question evaluates a candidate's ability to design custom pattern-matching logic beyond simple substring or regex lookups, handling both fixed-le...

Coding & Algorithms
1
0
6 people solved
Jun 12, 2026
Amazon logo
Amazon
Medium
Software Engineer

Minimum Path Length Through a Grid With One Allowed Cell Conversion

You are given an m x n grid grid where every cell holds either 1 (an open cell you may stand on) or 0 (a blocked cell). You start at the top-left cell...

Coding & Algorithms
1
0
16 people solved
Jun 30, 2026
Apple logo
Apple
Medium
Software Engineer

Implement a FIFO Queue Using Two Stacks

Implement a FIFO Queue Using Two Stacks Implement a first-in-first-out (FIFO) queue using only two last-in-first-out (LIFO) stacks. The implemented qu...

Coding & Algorithms
3
0
11 people solved
Jun 30, 2026
Virtu logo
Virtu
Medium
Software Engineer Locked

Solve Four Online Assessment Coding Tasks

This set of four problems evaluates a candidate's proficiency in core algorithmic competencies including string parsing and bracket validation, bitwis...

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

Explain OS processes, threads, and memory

Explain OS processes, threads, and memory Explain core operating system concepts: processes vs threads, context switching, and scheduling (preemptive ...

Coding & Algorithms
31
1
322 people solved
Jul 17, 2025
Bytedance logo
Bytedance
Medium
Software Engineer

Solve these string, subset, and date problems

You are asked to solve multiple coding tasks. 1) Reverse word order in a string - Input: a string s containing words separated by spaces (may contain ...

Coding & Algorithms
6
0
86 people solved
Jan 23, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve Nearby Inventory and Word Segmentation Tasks

Two Algorithmic Tasks Implement both parts. They are independent and should have separate functions. Part A - Nearby Centers with Inventory An undirec...

Coding & Algorithms
1
0
15 people solved
Feb 2, 2026
StackAdapt logo
StackAdapt
Medium
Software Engineer

Analyze time complexity for dictionary operations

Analyze the time complexity of the following dictionary/hash map operations. (a) Searching for a key: state average-case and worst-case time, and expl...

Coding & Algorithms
11
0
186 people solved
Sep 6, 2025
DRW logo
DRW
Medium
Data Scientist

Solve three algorithmic tasks in Python

You are given 120 minutes to implement three independent algorithmic tasks in Python. Each task specifies the required input/output behavior, the cons...

Coding & Algorithms
15
0
128 people solved
Jul 28, 2025
Vanta logo
Vanta
Easy
Software Engineer Locked

Implement a Unique Lines Command

This question evaluates mastery of file I/O, streaming algorithms, stateful line processing, and memory-efficient handling of large inputs, situating ...

Coding & Algorithms
3
0
33 people solved
May 25, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Implement a Distributed Rate Limiter

This question evaluates a candidate's ability to design and implement a distributed rate-limiting mechanism, testing knowledge of distributed systems,...

Coding & Algorithms
11
0
83 people solved
May 25, 2026
TikTok logo
TikTok
Easy
Software Engineer Locked

Solve the N-Queens problem

This question evaluates a candidate's competence in backtracking, constraint satisfaction, combinatorial search, recursion, and state representation. ...

Coding & Algorithms
8
0
78 people solved
Feb 11, 2026
Tesla logo
Tesla
Easy
Software Engineer

Count the Ways to Decode a Numeric Cipher

A substitution cipher maps each uppercase English letter to a number: 'A' → 1, 'B' → 2, …, 'Z' → 26. To encode a word, every letter is replaced by its...

Coding & Algorithms
0
0
6 people solved
Jun 29, 2026
Roblox logo
Roblox
Medium
Software EngineerSenior+ Locked

Most Frequent Call Stack from Profiler Samples

This question evaluates a candidate's ability to design an efficient hashing and frequency-counting solution over sequences, along with careful handli...

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

Validate a Shopping Cart

This question evaluates the ability to implement robust input and business-rule validation for shopping-cart items, including data integrity checks, i...

Coding & Algorithms
7
0
51 people solved
Jun 10, 2026
Jane Street logo
Jane Street
Medium
Machine Learning Engineer

Code Editor with Block Shrink and Expand (Code Folding)

Implement the core of a code editor (similar to VS Code) that supports code folding: collapsing ("shrink") and restoring ("expand") indentation-based ...

Coding & Algorithms
3
0
33 people solved
Apr 24, 2026
Grammarly logo
Grammarly
Hard
Software Engineer

Solve interval merge and string dedup problems

You are given three coding questions from a phone screen. Solve each independently. 1) Merge overlapping intervals Input: A list of intervals interval...

Coding & Algorithms
35
0
248 people solved
Oct 22, 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