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
Oracle logo
Oracle
Hard
Software Engineer Locked

Implement in-memory data structures and booking API

This question evaluates proficiency in data structures and algorithms, systems-level data modeling, and practical API design by testing in-memory key-...

Coding & Algorithms
8
0
119 people solved
Feb 12, 2026
Coinbase logo
Coinbase
Medium
Software Engineer

Analyze food-delivery data

Analyze food-delivery data You are given data for a food-delivery platform: a set of restaurants (each with a menu of items and prices, plus a geograp...

Coding & Algorithms
15
0
148 people solved
Aug 4, 2025
Atlassian logo
Atlassian
Medium
Software Engineer Locked

Implement sequential and parallel URL requests

This question evaluates proficiency in HTTP networking, asynchronous and parallel programming (promises/futures), deduplication and order preservation...

Coding & Algorithms
6
0
61 people solved
Feb 11, 2026
NVIDIA logo
NVIDIA
Hard
Software Engineer Locked

Implement short algorithms on logs, grids, and strings

This multi-part Coding & Algorithms question evaluates algorithmic problem-solving skills and mastery of core competencies including temporal window r...

Coding & Algorithms
18
0
183 people solved
Feb 11, 2026
Netflix logo
Netflix
Hard
Software EngineerSenior+

Compute Earliest Completion Times

You are given n tasks numbered from 0 to n - 1. Each task i has a positive duration duration[i]. You are also given a list of prerequisite relationshi...

Coding & Algorithms
1
0
14 people solved
Apr 5, 2026
Meta logo
Meta
Medium
Machine Learning Engineer

Find target using robot movement API

You control a robot in an unknown 2D grid. The grid layout and boundaries are unknown, and you cannot access the map directly. Some cells are blocked ...

Coding & Algorithms
13
0
99 people solved
Oct 30, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Design an in-memory banking service

Design an in-memory banking service supporting timestamped operations and edge-case semantics. Implement: ( 1) create_account(id, t): Create a new acc...

Coding & Algorithms
105
1
927 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Data Scientist

Implement a high-throughput web crawler safely

Design and code (pseudocode acceptable) a multi-threaded web crawler that favors breadth-first discovery while continuously running analysis tasks on ...

Coding & Algorithms
11
0
139 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Fix failing tests and refactor code

You're given a small Python repo. After creating and activating a clean virtual environment, installing requirements, and running "pytest -q", two tes...

Coding & Algorithms
11
0
112 people solved
Oct 13, 2025
Google logo
Google
Medium
Software EngineerNew Grad

Track the Running Median of an Integer Stream

Track the Running Median of an Integer Stream Problem Implement runningMedianTwice(values) -> mediansTwice. Process values from left to right. After e...

Coding & Algorithms
1
0
12 people solved
Dec 8, 2025
Amazon logo
Amazon
Medium
Software Engineer

Add One Source to Minimize Grid Inconvenience

Add One Source to Minimize Grid Inconvenience Implement min_max_inconvenience(grid). grid is a non-empty rectangular matrix containing 0 and 1. A cell...

Coding & Algorithms
2
0
30 people solved
Jul 9, 2026
Meta logo
Meta
Medium
Machine Learning EngineerIntern AI Locked

Implement Sparse Matrix Operations

This question evaluates proficiency in sparse linear algebra, efficient algorithms, and data-structure design for numerical and machine learning workl...

Coding & Algorithms
6
0
52 people solved
Feb 8, 2026
Nextdoor logo
Nextdoor
Hard
Data Engineer

Write SQL for basic user metrics

You are given a simplified schema for a fictional social app called Nextagram: - users(user_id PK, username, created_at TIMESTAMP) - follows(follower_...

Coding & Algorithms
5
0
88 people solved
Feb 8, 2026
Meta logo
Meta
Medium
Software Engineer

Find top-K frequent elements in a stream

You receive a large stream of items (e.g., integers or strings) that may not fit in memory. Design an algorithm that can return the top K most frequen...

Coding & Algorithms
8
0
79 people solved
Feb 25, 2026
J.P. Morgan logo
J.P. Morgan
Medium
Software Engineer Locked

Two Sum — Indices Summing to a Target

This question evaluates a candidate's ability to design an efficient array-searching algorithm that maps values to indices under a target-sum constrai...

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

Boolean Expression Tree with Leaf Flips

This question evaluates a candidate's ability to work with tree data structures and apply efficient update propagation techniques. It tests practical ...

Coding & Algorithms
6
0
26 people solved
Jun 9, 2026
Rippling logo
Rippling
Medium
Software Engineer AI Locked

Implement Courier Delivery Cost Tracking

This question evaluates skills in time-interval arithmetic, in-memory state management, and billing computation for delivery records, including handli...

Coding & Algorithms
3
0
36 people solved
May 15, 2026
Vanta logo
Vanta
Medium
Software Engineer

Implement a uniq-like function

Implement a function similar to the Unix uniq utility. You are given a sequence of strings representing lines of text in the order they appear in a fi...

Coding & Algorithms
39
1
265 people solved
Feb 23, 2026
Capital One logo
Capital One
Medium
Data Scientist

Explain Shell Script for Python Virtual Environment Setup

Explain Shell Script for Python Virtual Environment Setup Scenario Shell script for setting up a Python virtual environment during a tech screen Quest...

Coding & Algorithms
30
0
214 people solved
Aug 4, 2025
Rippling logo
Rippling
Medium
Software Engineer AI Locked

Implement Article Vote Tracking

This question evaluates data structures, state-management, and algorithmic skills for tracking per-user votes, detecting vote flips, maintaining a mos...

Coding & Algorithms
3
0
40 people solved
May 14, 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