Coding & Algorithms Interview Questions

Practice 3,429 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.4k Questions 368 Companies08.11.2026
Showing 20 results
Role
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Consistent Hashing Ring with Virtual Nodes for Shard Rebalancing

This question evaluates a candidate's ability to design and implement a consistent hashing ring with virtual nodes for distributing keys across shards...

Coding & Algorithms
7
0
38 people solved
Jun 26, 2026
Target logo
Target
Medium
Backend Engineer

Find the Closest Candidate String by Edit Distance

Find the Closest Candidate String by Edit Distance Problem Implement closestCandidates(candidates, queries) -> results. The edit distance between two ...

Coding & Algorithms
0
0
4 people solved
Jul 15, 2026
Google logo
Google
Medium
Software Engineer Locked

Simulate room assignments for scheduled meetings

This question evaluates scheduling and event-simulation skills, including time-ordered processing, resource allocation with tie-breaking, and efficien...

Coding & Algorithms
14
0
136 people solved
Jan 6, 2026
Moodys logo
Moodys
Medium
Software Engineer

Return Binary Search Tree Values in Ascending Order

Return Serialized BST Values in Ascending Order Implement ascendingBstValues(levelOrder) -> values. levelOrder is a JSON-compatible array containing s...

Coding & Algorithms
0
0
2 people solved
Jul 25, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve Three Array and Matrix Path Problems

This set of three problems evaluates algorithm design, complexity analysis, and data-structure reasoning across matrix path traversal, interval covera...

Coding & Algorithms
11
1
125 people solved
May 30, 2026
Rippling logo
Rippling
Medium
Software Engineer AI Locked

Courier Delivery Cost Tracker

This question evaluates a candidate's ability to design a stateful, multi-part class that combines interval tracking with incremental balance accounti...

Coding & Algorithms
2
0
30 people solved
Jun 10, 2026
Jane Street logo
Jane Street
Medium
Software Engineer Locked

Collapsible Code Editor: Brace Matching and Toggle

This question tests stack-based parsing and stateful data structure design through a two-part brace-matching and collapsible editor problem. It evalua...

Coding & Algorithms
3
0
39 people solved
Jun 4, 2026
Google logo
Google
Medium
Software Engineer

Filter Repeated Robot Status Messages

Filter Repeated Robot Status Messages Implement filter_messages(events) for a robot status stream. Each event is a pair [timestamp, message]. Return, ...

Coding & Algorithms
6
1
24 people solved
Jul 5, 2026
Squarepoint logo
Squarepoint
Hard
Software Engineer

Solve two coding assessment tasks

The online assessment contained two coding problems: 1. Maximize store revenue You are given an integer array quantity of length n, where quantity[i...

Coding & Algorithms
12
0
132 people solved
Feb 23, 2026
Optiver logo
Optiver
Medium
Software Engineer

Design a balloon stability tracker

Implement a class BalloonFestival to manage hot-air balloons and wind fields over time, and to report rewarded balloons at inspection times. Methods a...

Coding & Algorithms
67
0
747 people solved
Sep 6, 2025
Upstart logo
Upstart
Medium
Software Engineer

Solve Five OA Coding Tasks

This is an online-assessment screen consisting of five independent coding tasks. Each task is self-contained — there is no shared state between them —...

Coding & Algorithms
16
0
312 people solved
Apr 10, 2026
Shopify logo
Shopify
Medium
Machine Learning Engineer

Implement an interactive CLI class with tests

Design and implement a command-line interactive application as a single class using OOP principles. The program should support commands: add <key> <va...

Coding & Algorithms
12
0
202 people solved
Aug 13, 2025
DoorDash logo
DoorDash
Medium
Software EngineerSenior+ Locked

Calculate Driver Payments

This question evaluates a candidate's ability to implement interval arithmetic and overlap computation, perform data deduplication and filtering, hand...

Coding & Algorithms
2
1
26 people solved
Jun 5, 2026
Anduril logo
Anduril
Medium
Software Engineer

Find Unreachable Objects in a Heap Graph

Find Unreachable Objects in a Heap Graph Heap objects now contain references to other addresses. Each object is represented as [address, references], ...

Coding & Algorithms
2
0
18 people solved
Jul 10, 2026
Shopify logo
Shopify
Easy
Software EngineerSenior+ AI

Build a Local URL Shortener

Implement a local URL shortener that runs on a single machine. Design a small library or service with two core operations: - shorten(long_url) -> shor...

Coding & Algorithms
59
0
420 people solved
Jan 24, 2026
Pinterest logo
Pinterest
Medium
Software Engineer

Collect Pins from Reachable Boards

Collect Pins from Reachable Boards The interview report names a board-and-pin coding problem whose intended approach was breadth-first search but does...

Coding & Algorithms
1
0
17 people solved
Jul 2, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Find the Minimum Processing Rate to Meet a Deadline

Find the smallest integer processing rate that completes independent workloads before a deadline when unused hourly capacity cannot be shared. The pro...

Coding & Algorithms
2
0
27 people solved
May 29, 2026
Capital One logo
Capital One
Medium
Software Engineer

Solve four algorithmic coding tasks

You are given four independent coding tasks. They may be solved in any order, and partial test-case credit is awarded for each task. The tasks are rou...

Coding & Algorithms
64
0
434 people solved
Sep 6, 2025
Apple logo
Apple
Easy
Software Engineer

Solve three easy algorithm problems

You are given three independent algorithmic tasks. For each one, explain your approach (no need to run code). 1) Merge two sorted lists (integers inst...

Coding & Algorithms
33
0
281 people solved
Nov 11, 2025
Shopify logo
Shopify
Easy
Machine Learning Engineer

Design a robot movement command system

Robot Movement (Pair Programming) You are given an empty starter repository (only a README). Implement a small, testable robot movement module that ca...

Coding & Algorithms
54
0
484 people solved
Dec 15, 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