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
Mavenclinic logo
Mavenclinic
Medium
Backend Engineer

Reorder Search Results for Provider Diversity

Build a function that paginates ordered provider listings for a telehealth marketplace. Each input record is a CSV string in the format: provider_id, ...

Coding & Algorithms
7
0
55 people solved
Jan 13, 2026
Pinduoduo logo
Pinduoduo
Medium
Software Engineer Locked

Design a Recency-Eviction Cache

This question evaluates proficiency with data structures and algorithmic design for implementing a fixed-capacity key-value cache that enforces recenc...

Coding & Algorithms
5
0
38 people solved
Feb 21, 2026
Databricks logo
Databricks
Hard
Software Engineer Locked

Implement an Alternating Tic-Tac-Toe Game

This question evaluates a candidate's ability to implement state management, alternating turn logic, input validation, board representation, game outc...

Coding & Algorithms
2
0
16 people solved
May 30, 2026
Amazon logo
Amazon
Medium
Software Engineer AI

Calculate Circular Route Query Distance

You are given a circular route with n stops numbered 0 to n - 1. The array distances has length n, where distances[i] is the clockwise distance from s...

Coding & Algorithms
0
0
10 people solved
Apr 6, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Design an IPv4 Address Iterator

This question evaluates a candidate's ability to represent and iterate IPv4 addresses, covering parsing, numeric arithmetic with carry between octets,...

Coding & Algorithms
15
0
114 people solved
Jan 10, 2026
Otter.Ai logo
Otter.Ai
Medium
Software Engineer Locked

Evaluate Arithmetic Expressions

This question evaluates understanding and implementation of expression parsing, operator precedence, tokenization of numeric and operator tokens, and ...

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

Find Maximum Island Perimeter

This question evaluates grid traversal and connected-component analysis skills, focusing on reasoning about perimeters and boundary conditions in bina...

Coding & Algorithms
2
0
37 people solved
Apr 5, 2026
Bloomberg logo
Bloomberg
Easy
Software Engineer Locked

Solve meeting and tree problems

This question evaluates skills in interval manipulation and boolean-based merging, along with binary-tree traversal and side-view extraction for strin...

Coding & Algorithms
1
0
26 people solved
Apr 5, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Build a concurrent web crawler

This question evaluates understanding of concurrent programming, synchronization, thread safety, and graph traversal as applied to a multithreaded web...

Coding & Algorithms
22
0
144 people solved
Apr 5, 2026
Google logo
Google
Medium
Software Engineer Locked

Find Earliest Fully Connected Time

This question evaluates a candidate's understanding of dynamic graph connectivity, time-ordered event processing, and state maintenance in graphs, inc...

Coding & Algorithms
33
1
446 people solved
Apr 5, 2026
Jane Street logo
Jane Street
Hard
Software Engineer Locked

Optimize trade PnL table updates

This question evaluates understanding of incremental aggregation and state management, including handling overlapping predicates, caching expensive or...

Coding & Algorithms
17
0
188 people solved
Feb 18, 2026
Harvey logo
Harvey
Medium
Backend Engineer

Implement tag matcher and filesystem

This interview reportedly included two coding problems: 1. Tag matching in text Given a sentence and a list of tags or keywords, return the tags th...

Coding & Algorithms
6
0
81 people solved
Feb 18, 2026
Snapchat logo
Snapchat
Hard
Software Engineer

Implement LRU cache and prime products array

You are given two separate coding tasks. Task 1: Implement an LRU cache Implement an in-memory cache with a fixed capacity that evicts the least recen...

Coding & Algorithms
12
0
92 people solved
Oct 28, 2025
Meta logo
Meta
Easy
Software Engineer

Implement Multi-Level In-Memory Services

Implement the following independent multi-level in-memory service simulations. In an interview, you may receive one scenario and unlock the levels seq...

Coding & Algorithms
0
0
10 people solved
Apr 4, 2026
Zoox logo
Zoox
Medium
Data Engineer

Write SQL revenue and anomaly queries

You are given two tables. Table: transactions | Column | Type | Description | |---|---|---| | transaction_id | int | Unique identifier for each transa...

Coding & Algorithms
4
0
63 people solved
Apr 4, 2026
Bytedance logo
Bytedance
Medium
Site Reliability Engineer

Find Maximum Chain Activations

You are given n devices, where each device is represented as [x, y, r]. Device i is located at coordinates (x, y) and can directly activate device j i...

Coding & Algorithms
1
0
22 people solved
Apr 4, 2026
Google logo
Google
Hard
Software Engineer AI Locked

Solve checksum and dependency debugging tasks

This question evaluates skills in string processing, modular arithmetic-based checksum computation and mapping, plus debugging of feature enablement l...

Coding & Algorithms
14
0
126 people solved
Apr 4, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Reverse Linked List Groups

This question evaluates linked list manipulation, pointer/reference management, in-place iterative algorithms, and the ability to enforce O(1) extra s...

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

Replace Delimited Tokens in a String

This question evaluates string parsing, token recognition, and dictionary lookup competencies for robust text replacement, including handling malforme...

Coding & Algorithms
2
0
15 people solved
May 28, 2026
Sierra logo
Sierra
Hard
Software Engineer

Split Markdown Into Header-Aware Chunks

Implement a function that splits a Markdown document into ordered chunks, where each chunk must not exceed a given size limit. A Markdown header is a ...

Coding & Algorithms
4
0
63 people solved
Apr 3, 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