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

Implement an IPv4 Range Iterator

This question evaluates implementing iterative data structures and range-handling algorithms alongside numeric representation of IPv4 addresses and bi...

Coding & Algorithms
4
0
72 people solved
Jan 29, 2026
Instacart logo
Instacart
Medium
Software Engineer

Implement an In-Memory File Storage System

Implement an in-memory file storage service. You need to support files identified by a unique full path string, such as "/docs/a.txt". Each file has a...

Coding & Algorithms
0
0
8 people solved
Apr 17, 2026
Databricks logo
Databricks
Medium
Software Engineer

Implement Random Connectivity and Grid Routing

This entry contains two independent coding problems. Problem 1: Uniformly connect node groups You are given k non-empty, disjoint groups of unique nod...

Coding & Algorithms
5
1
54 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Determine Whether Queries Can Zero Array

This question evaluates understanding of range-based array operations and feasibility under bounded per-index decrements, testing skills in interval r...

Coding & Algorithms
2
0
27 people solved
Apr 17, 2026
Uber logo
Uber
Medium
Software EngineerNew Grad Locked

Determine Whether Queries Can Zero Array

This question evaluates competency in array manipulation, range updates, and feasibility under constraints, focusing on reasoning about sequential int...

Coding & Algorithms
3
0
51 people solved
Apr 17, 2026
Voleon logo
Voleon
Hard
Software Engineer

Implement Kac ring with O(1) color and kstep

You are implementing a Kac ring dynamical system. Model - There are N positions arranged in a circle, indexed clockwise: 0, 1, ..., N-1. - Each positi...

Coding & Algorithms
45
0
395 people solved
Sep 24, 2025
Meta logo
Meta
Medium
Machine Learning Engineer

Solve matrix diagonal and sliding-window statistics

Solve matrix diagonal and sliding-window statistics 1) Given an m x n integer matrix, determine whether every top-left to bottom-right diagonal has th...

Coding & Algorithms
4
0
74 people solved
Jul 31, 2025
Anthropic logo
Anthropic
Hard
Software Engineer

Group Duplicate Files by Content

Group Duplicate Files by Content Given a snapshot of files, return groups of paths whose complete contents are identical. The interview report preserv...

Coding & Algorithms
0
0
6 people solved
Apr 16, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Solve String Addition and Expression Evaluation

This question evaluates string manipulation and parsing skills for numeric computation, covering addition of integers represented as character arrays ...

Coding & Algorithms
5
0
37 people solved
Apr 16, 2026
Stripe logo
Stripe
Medium
Software Engineer

Process auth requests with fraud rules

Question Implement a function that, given a list of Authorization Requests (timestamp_seconds, unique_id, amount, card_number, merchant), outputs a hu...

Coding & Algorithms
62
0
113 people solved
Jul 29, 2025
Glean logo
Glean
Hard
Software Engineer

Simulate document assignment to indexers

You are given a system with m parallel indexers (workers), numbered from 0 to m-1. Documents arrive over time and are placed in a processing queue. Ea...

Coding & Algorithms
35
0
362 people solved
Nov 19, 2025
Aurora logo
Aurora
Medium
Software Engineer

Evaluate an Arithmetic Expression

Evaluate an Arithmetic Expression Implement a function that evaluates a valid arithmetic expression containing non-negative integers, the binary opera...

Coding & Algorithms
0
0
7 people solved
Apr 15, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Determine Whether a Binary Tree Is a Valid BST

Determine Whether a Binary Tree Is a Valid BST Problem Given a binary tree, determine whether the entire tree satisfies the strict binary-search-tree ...

Coding & Algorithms
0
0
4 people solved
Apr 15, 2026
Meta logo
Meta
Hard
Software EngineerSenior+

Solve Subarray Sum and Local Minimum

Two coding problems were reported in the same phone-screen round: 1. Count target-sum subarrays. Given an integer array nums and an integer k, return ...

Coding & Algorithms
5
0
40 people solved
Apr 15, 2026
Harvey logo
Harvey
Medium
Software Engineer

Highlight Exact Source Matches

You are given a string text and a list of strings sources. For every exact occurrence of any string in sources within text, wrap the matched character...

Coding & Algorithms
2
0
29 people solved
Apr 15, 2026
Coinbase logo
Coinbase
Medium
Software Engineer

Design order stream with state transitions

Design order stream with state transitions Implement an in-memory order stream service with operations: add(order), delete(order_id), pause(order_id),...

Coding & Algorithms
4
0
80 people solved
Jul 26, 2025
Roblox logo
Roblox
Medium
Software Engineer

Implement a sliding-window rate limiter

Implement an in-memory sliding-window rate limiter. You are given a stream of requests, each with a timestamp in milliseconds. Part 1: Per-user limit ...

Coding & Algorithms
16
0
153 people solved
Jan 24, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Build the Largest Available Sequence

This question evaluates algorithmic problem-solving skills in state simulation, constrained selection, and lexicographic sequence maximization, measur...

Coding & Algorithms
5
0
78 people solved
Apr 14, 2026
TikTok logo
TikTok
Medium
Machine Learning Engineer Locked

Compute minimum path sum in a triangle

This question evaluates proficiency in dynamic programming and algorithmic problem-solving within the Coding & Algorithms domain, focusing on handling...

Coding & Algorithms
4
0
46 people solved
Jan 22, 2026
Boeing logo
Boeing
Easy
Software Engineer Locked

Compute unique-substring length and first unique index

This question evaluates proficiency in string processing and character-frequency reasoning by combining tasks that measure longest distinct-character ...

Coding & Algorithms
1
0
23 people solved
Jan 22, 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