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

Find Top Errors in Time Window

This question evaluates the ability to parse JSON logs, apply time-window filtering with inclusive/exclusive boundaries, aggregate error frequencies, ...

Coding & Algorithms
1
1
22 people solved
Jun 1, 2026
Bytedance logo
Bytedance
Hard
Backend EngineerIntern Locked

Solve Bracket Matching and Tree Width

This composite question evaluates proficiency with core data structures and algorithmic reasoning, covering string-based bracket validation (sequence ...

Coding & Algorithms
2
0
15 people solved
May 31, 2026
Nextdoor logo
Nextdoor
Medium
Software Engineer Locked

Group Photos and Sort Feed Items

This question evaluates proficiency in list/sequence transformation, detecting consecutive runs, grouping elements, aggregating attributes, and perfor...

Coding & Algorithms
1
0
11 people solved
May 31, 2026
Amazon logo
Amazon
Medium
Machine Learning Engineer Locked

Determine if all courses can be completed

This question evaluates graph-theoretic dependency modeling and cycle-detection competency, measuring the ability to represent course prerequisites as...

Coding & Algorithms
2
0
16 people solved
May 30, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Implement Event Filtering and Queue Routing

This question evaluates parsing and evaluation of domain-specific filter expressions, JSON traversal and type-aware comparisons, boolean logic handlin...

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

Implement Employee Management and Expression Evaluation

This question evaluates competency in designing and maintaining hierarchical data structures and in parsing and evaluating nested function-style arith...

Coding & Algorithms
2
0
29 people solved
May 30, 2026
Otter.Ai logo
Otter.Ai
Medium
Software Engineer Locked

Implement an Arithmetic Expression Evaluator

This question evaluates expression parsing, operator precedence, tokenization, integer arithmetic semantics (including truncation), and handling of ne...

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

Implement Dependency-Aware To-Do List

This question evaluates the ability to design in-memory data structures and algorithms for representing tasks with directed dependencies, manage state...

Coding & Algorithms
0
0
5 people solved
May 29, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Maximize Throughput and Count Trigger Components

This question evaluates proficiency in algorithmic optimization under resource constraints (maximizing pipeline throughput within a budget) and in mod...

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

Analyze Reports in a Nested Org Chart

Analyze a nested organization chart and classify every employee as an individual contributor or manager. Compute direct and total descendant counts in...

Coding & Algorithms
0
0
4 people solved
May 27, 2026
Bytedance logo
Bytedance
Medium
Site Reliability EngineerSenior+ Locked

Solve Stack and String Shift Problems

This two-part question evaluates proficiency with core data structures and string/array algorithms—specifically stack-based delimiter matching and cum...

Coding & Algorithms
4
0
36 people solved
May 27, 2026
Shield Ai logo
Shield Ai
Easy
Software EngineerSenior+ Locked

Count Pairs with the Minimum Absolute Difference

Count unordered index pairs whose values have the minimum absolute difference in an integer array. Sorting reveals the minimum gap, while duplicate ru...

Coding & Algorithms
0
0
6 people solved
May 25, 2026
Ramp logo
Ramp
Hard
Software Engineer Locked

Traverse an HTTP Maze with Retry Handling

Traverse a simulated HTTP maze with breadth-first search to return the shortest route from a start URL to an exit. Handle links, malformed input, succ...

Coding & Algorithms
0
0
3 people solved
May 25, 2026
Luma logo
Luma
Hard
Software Engineer Locked

Implement Refactoring Assessment Features

This question evaluates proficiency in implementing spec-driven algorithms and data structures in Java, covering route reconstruction (directed graph/...

Coding & Algorithms
1
0
10 people solved
May 25, 2026
Flexport logo
Flexport
Medium
Software Engineer Locked

Solve Two Robbery Optimization Variants

This question evaluates competence in dynamic programming for linear optimization and recursion/tree DP for hierarchical structures, as well as the ab...

Coding & Algorithms
0
0
6 people solved
May 24, 2026
Illumio logo
Illumio
Medium
Software Engineer Locked

Solve Matrix Traversal and Pair Sum

This question evaluates proficiency in array and matrix manipulation, including spiral traversal with boundary and edge-case handling, index managemen...

Coding & Algorithms
0
0
7 people solved
May 24, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Minimize Circular Redistribution Cost

This question evaluates algorithmic problem-solving skills in array manipulation, circular data structures, load balancing, and cost optimization whil...

Coding & Algorithms
5
0
31 people solved
May 24, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Implement a Snapshot Set Iterator

This question evaluates data structure design, versioning, and iterator consistency concepts within the Coding & Algorithms domain, focusing on implem...

Coding & Algorithms
3
0
29 people solved
May 24, 2026
Valon logo
Valon
Hard
Software Engineer Locked

Implement an In-Memory Query Engine

This question evaluates skills in data modeling, API design, algorithmic filtering, and implementation of an in-memory query execution engine, includi...

Coding & Algorithms
0
0
6 people solved
May 24, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Find LCA With Parent Pointers

This question evaluates understanding of tree data structures and ancestor relationships, focusing on lowest common ancestor reasoning with parent poi...

Coding & Algorithms
1
0
12 people solved
May 24, 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