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

Add Consecutive-Value Bonuses to Grid Paths

Extend the maximum-score grid path with bonuses for equal adjacent values and strictly increasing triples of visited cells. Dynamic programming must r...

Coding & Algorithms
0
0
19 people solved
Jun 11, 2026
Two Sigma logo
Two Sigma
Hard
Data Scientist Locked

Merge Two Sorted Lists

This question evaluates proficiency with linked list data structures, pointer manipulation, in-place merging of sorted sequences, and general algorith...

Coding & Algorithms
10
0
68 people solved
Mar 18, 2026
Atlassian logo
Atlassian
Medium
Software Engineer

Find LCA in organization tree

Find LCA in organization tree Given an organizational hierarchy tree, return the lowest common organization (parent node) for two or more employees (≥...

Coding & Algorithms
12
0
91 people solved
Aug 4, 2025
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement an in-memory DB with TTL backup/restore

This question evaluates implementation and reasoning skills for an in-memory nested key→field→value store with TTL-based expirations, snapshot backup/...

Coding & Algorithms
79
2
873 people solved
Feb 11, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Solve common interview coding problems

This set evaluates algorithmic problem-solving, data structure selection, and time/space complexity analysis across common patterns such as maximum su...

Coding & Algorithms
10
0
84 people solved
Feb 11, 2026
Intuit logo
Intuit
Medium
Software Engineer Locked

Produce valid student lineup from parent array

This question evaluates understanding of rooted tree hierarchies, parent-before-child ordering constraints, and lexicographic minimality when construc...

Coding & Algorithms
12
0
91 people solved
Feb 11, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Implement toy-language types and generic substitution

Problem: Toy Language Type System (Printing + Generic Resolution) You are implementing a small type system for a custom “Toy Language”. Types can be: ...

Coding & Algorithms
72
1
1138 people solved
Nov 13, 2025
Uber logo
Uber
Medium
Software Engineer Locked

Solve Several Algorithm Problems

This collection evaluates proficiency in string processing (longest palindromic substrings), graph connectivity and union‑find style concepts for 2D p...

Coding & Algorithms
4
0
57 people solved
Mar 17, 2026
Nuro logo
Nuro
Medium
Software Engineer

Find gaps between intervals

You are given a list of integer intervals intervals, where each interval is represented as [start, end] (inclusive), and start <= end. Two intervals m...

Coding & Algorithms
14
0
221 people solved
Nov 9, 2025
NVIDIA logo
NVIDIA
Medium
Software Engineer Locked

Implement polynomial multiplication API in C

This question evaluates proficiency in C programming, API design, low-level data representation for polynomials, and algorithmic competence in perform...

Coding & Algorithms
9
0
86 people solved
Feb 8, 2026
LinkedIn logo
LinkedIn
Easy
Machine Learning Engineer Locked

Compute point-to-segment minimum distance

This question evaluates understanding of computational geometry and numerical robustness, testing the ability to compute Euclidean distances between a...

Coding & Algorithms
17
0
166 people solved
Feb 8, 2026
CloudKitchens logo
CloudKitchens
Medium
Software Engineer

Answer static and streaming Top-K queries

Top-K in static and streaming settings (3 variants) You are given integers and asked to answer Top-K queries under three different scenarios. Variant ...

Coding & Algorithms
9
0
131 people solved
Aug 20, 2025
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer Locked

First Non-Repeating Character in a String

This question evaluates a candidate's ability to work with hash maps and character frequency counting in string processing. It tests practical coding ...

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

Streaming Points: Remove Any Pair Within a Distance

This question evaluates practical use of ordered data structures for streaming input with proximity-based removal logic. It tests balanced BST or sort...

Coding & Algorithms
1
0
9 people solved
Jun 9, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Find Maximum Candies With Two Types

You are given a row of candies represented by an array candies, where candies[i] is the type of the candy at position i. You may choose any starting p...

Coding & Algorithms
1
0
15 people solved
Apr 22, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Build an Account Transfer Ledger

This question evaluates the ability to implement transaction processing, state management, validation of transfers (including rejects and platform len...

Coding & Algorithms
5
0
76 people solved
Mar 13, 2026
Belvederetrading logo
Belvederetrading
Medium
Software Engineer Locked

Implement Concurrent Utilities in C++

This question evaluates proficiency in C++ concurrency and generic programming, specifically multithreaded parallel execution, synchronization primiti...

Coding & Algorithms
2
0
28 people solved
Mar 13, 2026
Amazon logo
Amazon
Medium
Software Engineer

Build a BFS Web Crawler

Implement a web crawler for a single website. You are given: - A starting URL startUrl - A function fetch(url) that returns the HTML content of a page...

Coding & Algorithms
18
0
143 people solved
Mar 12, 2026
Goldman Sachs logo
Goldman Sachs
Medium
Software EngineerSenior+ Locked

Design a Workspace Resource Manager

This question tests a candidate's ability to design and implement a tree-structured data model with efficient CRUD operations in memory. It evaluates ...

Coding & Algorithms
1
0
9 people solved
Jun 8, 2026
Booking logo
Booking
Medium
Software Engineer

Solve three OA coding questions

You are given a 90-minute online assessment containing three coding questions. Implement solutions for all questions. --- Question 1: Group strings th...

Coding & Algorithms
18
0
190 people solved
Nov 2, 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