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
Hive.Ai logo
Hive.Ai
Hard
Software EngineerSenior+

Measure Water Trapped Between Elevations

Measure Water Trapped Between Elevations Given a list of nonnegative integer elevations where each bar has width one, return the total number of unit ...

Coding & Algorithms
0
0
9 people solved
May 13, 2026
Sigmacomputing logo
Sigmacomputing
Medium
Software Engineer

Evaluate a Formula AST with Variables

Evaluate a Formula AST with Variables Extend a Boolean-formula evaluator so the AST may contain variable references. Resolve each variable from a supp...

Coding & Algorithms
0
0
7 people solved
May 12, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Find a Valid Course Order

This question evaluates graph algorithm skills—specifically topological ordering, directed cycle detection, and analysis of time and space complexity....

Coding & Algorithms
0
0
5 people solved
May 12, 2026
Akuna Capital logo
Akuna Capital
Medium
Data Engineer Locked

Compute Graph Spread and Portfolio Trades

This question evaluates graph traversal and data-manipulation competencies, combining connected-component analysis on undirected graphs with map-based...

Coding & Algorithms
0
0
6 people solved
May 11, 2026
Pinterest logo
Pinterest
Medium
Machine Learning Engineer Locked

Implement a Sparse Matrix Class

This question evaluates the ability to design and implement efficient sparse data structures and perform matrix operations, testing knowledge of spars...

Coding & Algorithms
1
0
15 people solved
May 11, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Build a Searchable Sentence Index

This question evaluates a candidate's ability to design and implement in-memory text indexes and related data structures, covering inverted indexing, ...

Coding & Algorithms
0
0
10 people solved
May 11, 2026
Uber logo
Uber
Medium
Software EngineerSenior+ Locked

Implement Last-Click Attribution APIs

This question evaluates a candidate's ability to implement stateful, time-windowed event matching and attribution, testing skills in data structures, ...

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

Solve Flower Placement and Directory Deletion

This question evaluates combinatorial constraint-satisfaction and permutation/matching skills for the flower-placement grid alongside filesystem trave...

Coding & Algorithms
5
0
56 people solved
May 8, 2026
Waymo logo
Waymo
Medium
Software Engineer Locked

Expand Nested Repetition Expressions

This question evaluates understanding of string parsing and nested structure handling, including skills in recursion, stack-based parsing, tokenizatio...

Coding & Algorithms
1
0
23 people solved
May 8, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Implement Memory Allocation and In-Memory Records

This question evaluates implementation skills in memory management and in-memory data modeling, covering first-fit allocation semantics, free/merge be...

Coding & Algorithms
1
0
15 people solved
May 7, 2026
Ziprecruiter logo
Ziprecruiter
Easy
Machine Learning Engineer Locked

Find Neighboring Records by Identifier

This question evaluates understanding of ordered data traversal and efficient lookup design, assessing competency with data structures, indexing and r...

Coding & Algorithms
1
0
14 people solved
May 6, 2026
Waymo logo
Waymo
Hard
Software Engineer

Count Squares Formed by Segments

Count Squares Formed by Segments You are given axis-aligned line segments with integer coordinates. Each segment is represented by two endpoints. One ...

Coding & Algorithms
1
0
9 people solved
May 5, 2026
Uber logo
Uber
Medium
Software EngineerSenior+ Locked

Implement Store Autocomplete

This question evaluates string matching, prefix search, and data structure selection skills by requiring an autocomplete method that returns entries b...

Coding & Algorithms
2
0
19 people solved
May 5, 2026
Uber logo
Uber
Medium
Frontend Engineer Locked

Simulate a Rank-Based Tournament

This question evaluates ability to simulate tournament pairing and single-elimination progression using array manipulation and data structures while p...

Coding & Algorithms
1
0
24 people solved
May 4, 2026
WeRide logo
WeRide
Medium
Software Engineer Locked

Implement Several Core Algorithmic Components

This multi-part problem evaluates core competencies in data structures and algorithm design (LRU cache, grid pathfinding and earliest-feasible-time an...

Coding & Algorithms
0
0
9 people solved
May 4, 2026
NVIDIA logo
NVIDIA
Medium
Data EngineerSenior+

Merge Overlapping Time Intervals

You are given a list of closed time intervals. Each interval is represented as [start, end], where start <= end. Write a function that returns the sma...

Coding & Algorithms
0
0
6 people solved
May 3, 2026
Squarepoint logo
Squarepoint
Medium
Data Scientist Locked

Implement EMA Crossovers and Root Solvers

This question evaluates time-series data manipulation and vectorized pandas operations for EMA crossovers, numerical methods and error analysis for im...

Coding & Algorithms
1
0
15 people solved
May 3, 2026
Crusoe logo
Crusoe
Easy
Software Engineer Locked

Implement Interval Overrides and Top-K Strings

This question evaluates interval manipulation and merging for half-open time ranges with overrides, plus frequency-counting and top-k string selection...

Coding & Algorithms
1
0
9 people solved
May 2, 2026
Commure logo
Commure
Hard
Software Engineer

Filter People by Optional Criteria

Filter People by Optional Criteria Implement filter_people(people, min_age, max_age, occupations, min_salary, max_salary). Each item in people is a di...

Coding & Algorithms
0
0
10 people solved
Apr 30, 2026
Electronic logo
Electronic
Hard
Software Engineer

Merge Accounts by Shared Email

Merge Accounts by Shared Email Each account record begins with a person's name followed by one or more email addresses. Two records belong to the same...

Coding & Algorithms
0
0
6 people solved
Apr 30, 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