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

Implement tail N lines

Question Implement a utility tail(path: string, N: int) (and an equivalent stream variant) that prints the last N lines of input without loading the w...

Coding & Algorithms
41
0
289 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

Build Prefix Lookup with a Trie

Build prefix lookup for repeated queries. Given words and query prefixes, return matching words for each query in lexicographic order. Implement: `pyt...

Coding & Algorithms
3
1
12 people solved
Jul 3, 2026
Waymo logo
Waymo
Medium
Software Engineer Locked

Compute Max Pooling Values and Coordinates

Practice a Waymo coding interview problem focused on compute max pooling values and coordinates. The prompt emphasizes edge cases, clean implementatio...

Coding & Algorithms
1
0
17 people solved
May 31, 2026
Rippling logo
Rippling
Hard
Software Engineer AI Locked

Implement a Searchable Logger Pipeline

This question evaluates proficiency in software design, data structures, and algorithmic text search by requiring a transformation pipeline, ordered i...

Coding & Algorithms
8
2
49 people solved
May 31, 2026
Intuit logo
Intuit
Medium
Software Engineer

Sum palindrome-change costs over all substrings

This is a three-part coding screen. Each part is independent — a string-algorithms problem, a SQL aggregation problem, and a shell-parsing problem — a...

Coding & Algorithms
22
0
259 people solved
Oct 13, 2025
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Count Digit-Reversal Equivalent Pairs

Define flipdigits(x) as the integer produced by reversing the decimal digits of non-negative integer x and removing leading zeroes from the reversed r...

Coding & Algorithms
0
0
10 people solved
Jul 2, 2026
Hudson River Trading logo
Hudson River Trading
Medium
Software Engineer

Calculate Completion Time for a Single-Server Reactor Queue

A laboratory has one molecular reactor. Each accepted sample takes exactly 5 minutes to process. Samples arrive throughout the day at integer timestam...

Coding & Algorithms
1
0
13 people solved
Jul 2, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement Task Management and Duplicate Detection

This question evaluates implementation and system-design skills across two problems: an in-memory task management service (CRUD operations, prioritize...

Coding & Algorithms
3
0
17 people solved
May 16, 2026
Microsoft logo
Microsoft
Easy
Software Engineer

Solve four classic algorithm problems

You are given four independent coding tasks. For each task, implement the required function. --- Problem 1: Zigzag level-order traversal of a binary t...

Coding & Algorithms
19
0
154 people solved
Nov 30, 2025
Coinbase logo
Coinbase
Medium
Software Engineer

Implement custom iterator classes

Implement custom iterator classes In a blank coding environment (no IDE assistance, no autocomplete), implement an iterator abstraction entirely from ...

Coding & Algorithms
24
0
183 people solved
Aug 4, 2025
TikTok logo
TikTok
Hard
Machine Learning Engineer Locked

Implement local maxima, bagging, and k-means

This question evaluates skills in algorithm implementation and machine learning fundamentals—specifically streaming local maxima detection, bootstrap ...

Coding & Algorithms
6
0
81 people solved
Jan 22, 2026
Apple logo
Apple
Easy
Software Engineer Locked

Implement flood fill using BFS and DFS

This question evaluates proficiency in graph traversal and matrix manipulation, specifically the implementation of BFS and DFS variants for flood fill...

Coding & Algorithms
15
0
184 people solved
Jan 22, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer

Solve two array and string problems

You will solve two independent coding tasks. Problem 1: Generate All Subsets of a Set You are given an integer array nums containing n distinct elemen...

Coding & Algorithms
14
0
170 people solved
Oct 16, 2025
BlackRock logo
BlackRock
Medium
Data Engineer

Solve two interval array problems

You are given two interval-based tasks from a technical screen for a data engineering role. 1. Merge overlapping intervals - Input: an array of int...

Coding & Algorithms
7
0
80 people solved
Feb 18, 2026
Shopify logo
Shopify
Medium
Software Engineer AI Locked

Terminal-Controlled Grid Rover Simulator

This question evaluates a candidate's ability to model stateful simulation logic, translating grid coordinates, heading rotations, and sequential comm...

Coding & Algorithms
1
0
10 people solved
Jun 13, 2026
Google logo
Google
Medium
Software Engineer

Group movies via graph traversal

You are given n movies labeled 0..n-1 and a list of undirected pairs (a, b) meaning movies a and b are similar. Group all movies into categories where...

Coding & Algorithms
8
0
140 people solved
Sep 6, 2025
Nextdoor logo
Nextdoor
Hard
Software Engineer Locked

Simulate Transaction Lock Scheduling

This question evaluates understanding of concurrency control, lock scheduling, transaction state management, and queuing behavior in the Coding & Algo...

Coding & Algorithms
0
0
11 people solved
May 27, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Implement IP Address Arithmetic

This question evaluates proficiency in IP addressing, parsing and validation, binary/address-space arithmetic, CIDR subnet calculation, and formatting...

Coding & Algorithms
5
3
38 people solved
May 12, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Minimize Increments to Equalize Path Costs

This question evaluates understanding of tree data structures, root-to-leaf path aggregation, and cost-balancing strategies within the Coding & Algori...

Coding & Algorithms
4
0
27 people solved
May 12, 2026
Bytedance logo
Bytedance
Hard
Software Engineer

Assign Meetings and Find the Most-Used Room

Assign Meetings and Find the Most-Used Room There are n rooms numbered from 0 through n - 1 and meetings [start, end] with distinct start times. Proce...

Coding & Algorithms
0
0
9 people solved
Apr 28, 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