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
Oscar logo
Oscar
Medium
Software Engineer

Solve Morse and Network Access Tasks

Solve the following two independent coding problems. Problem 1: Convert Between Text and Morse Code You are given the standard Morse-code mapping for ...

Coding & Algorithms
3
0
48 people solved
Apr 15, 2026
Google logo
Google
Medium
Software Engineer Locked

Find Containing Range

This question evaluates the ability to design appropriate data structures and apply algorithmic reasoning for efficient interval containment queries, ...

Coding & Algorithms
4
0
19 people solved
Jun 4, 2026
Confluent logo
Confluent
Medium
Software Engineer

Explain algorithm strategies and complexity

Explain algorithm strategies and complexity You are faced with a complex, potentially ambiguous coding problem. Describe how you would clarify require...

Coding & Algorithms
7
0
94 people solved
Jul 26, 2025
Two Sigma logo
Two Sigma
Medium
Data Scientist Locked

Evaluate Piecewise Linear Function

This question evaluates understanding of piecewise linear interpolation, numerical reasoning, and the ability to handle ordered 2D point data and edge...

Coding & Algorithms
4
0
48 people solved
Mar 3, 2026
Meta logo
Meta
Medium
Software Engineer

Return Binary Tree Nodes in Vertical Order

Return Binary Tree Nodes in Vertical Order A binary tree has nodes numbered from 0 through n - 1, with node 0 as the root. Arrays left and right conta...

Coding & Algorithms
0
0
12 people solved
Mar 2, 2026
Meta logo
Meta
Medium
Software Engineer

Merge Three Sorted Arrays Without Duplicates

Merge Three Sorted Arrays Without Duplicates You are given three integer arrays sorted in nondecreasing order. Merge them into one sorted array that c...

Coding & Algorithms
0
0
11 people solved
Mar 2, 2026
Qualcomm logo
Qualcomm
Medium
Software Engineer

Implement A* Maze Search

Implement maze pathfinding in C++. You are given an m x n grid where '.' is an open cell, '#' is a wall, S is the start, and T is the target. You may ...

Coding & Algorithms
4
0
73 people solved
Mar 2, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer Locked

Streaming Entropy with Numerical Stability

This question tests a candidate's ability to implement numerically stable online algorithms for computing Shannon entropy over streaming data. It eval...

Coding & Algorithms
0
0
10 people solved
Jun 3, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Reverse Nodes in K-Sized Groups

This question evaluates skills in manipulating singly linked lists, pointer reassignments, and performing in-place group transformations while meeting...

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

Propagate runtime ID across API requests

This question evaluates proficiency in runtime ID propagation across HTTP requests, JSON parsing and serialization, nested data traversal, and type-pr...

Coding & Algorithms
12
0
122 people solved
Jan 22, 2026
Meta logo
Meta
Hard
Machine Learning EngineerSenior+ AI Locked

Find Maximum Unique-Character Subset

This question evaluates algorithm design and combinatorial optimization skills, specifically the ability to model disjoint-character constraints, hand...

Coding & Algorithms
2
0
48 people solved
Mar 1, 2026
Meta logo
Meta
Hard
Machine Learning EngineerSenior+ AI Locked

Extend a Maze Solver

This question evaluates competence in graph search and state-space modeling, specifically BFS-based pathfinding, constrained traversal rules (directio...

Coding & Algorithms
4
0
36 people solved
Mar 1, 2026
Bloomberg logo
Bloomberg
Hard
Software Engineer

Design a data structure for dynamic top‑K frequency

Design a data structure that maintains a multiset of integers and supports the following operations efficiently: Operations - insert(x): Add one occur...

Coding & Algorithms
17
0
185 people solved
Mar 1, 2026
Google logo
Google
Medium
Software Engineer Locked

Find top-k distinct elements

This question evaluates understanding of algorithms and data structures for selecting distinct top-k values and enforcing ordering constraints. It is ...

Coding & Algorithms
25
0
179 people solved
Mar 1, 2026
IBM logo
IBM
Medium
Software Engineer Locked

Reverse last two characters with space

This question evaluates basic string manipulation and character indexing skills, including handling of edge cases when treating input as a raw charact...

Coding & Algorithms
7
0
55 people solved
Mar 1, 2026
xAI logo
xAI
Medium
Software Engineer Locked

Flatten and unflatten nested Python structures

This question evaluates proficiency in manipulating nested data structures, deterministic traversal and mapping between hierarchical shapes and flat i...

Coding & Algorithms
8
0
101 people solved
Mar 1, 2026
Decagon logo
Decagon
Easy
Software Engineer Locked

Design rolling-window conversation score tracker

This question evaluates a candidate's ability to design efficient data structures and algorithms for time-windowed streaming data, including maintaini...

Coding & Algorithms
17
0
209 people solved
Mar 1, 2026
Databricks logo
Databricks
Medium
Software EngineerNew Grad

Design KV store with sliding-window average QPS

Problem Design an in-memory key–value store that supports mutation operations and can report the average QPS (queries per second) over a recent time w...

Coding & Algorithms
27
0
363 people solved
Dec 17, 2025
Meta logo
Meta
Medium
Data Scientist

Design robust group size limiting for calls

Design the admission-control and enforcement algorithm to limit group-call size under real-world race conditions. Constraints: multiple SFU edges in m...

Coding & Algorithms
7
0
55 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Implement streaming SRM detector with late events

Implement a streaming detector for sample ratio mismatch (SRM) across many concurrent experiments. Input is two topic-partitioned streams: assignments...

Coding & Algorithms
2
0
55 people solved
Oct 13, 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