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

Implement text wrapping, waitlist, and intervals

This question evaluates skills in string parsing and word-wrapping logic, data-structure design for FIFO queue management and deletions, and interval ...

Coding & Algorithms
19
0
152 people solved
Feb 12, 2026
Google logo
Google
Easy
Software Engineer Locked

Compute decayed power levels in a graph

This question evaluates knowledge of graph algorithms and distance-based propagation, testing concepts such as shortest-path distance computation, mul...

Coding & Algorithms
18
0
151 people solved
Feb 12, 2026
Stripe logo
Stripe
Medium
Software Engineer

Generate Account Email Notifications

You are building an email notification scheduler for user accounts. You are given: 1. A list of user accounts. Each account has: - account_id - ...

Coding & Algorithms
5
0
47 people solved
Apr 14, 2026
Google logo
Google
Medium
Software Engineer

Determine validity after digit-constrained deletions

Determine validity after digit-constrained deletions You're given a string S of length n consisting only of '(' , ')' , and digits '0'–'9'. For every ...

Coding & Algorithms
14
0
160 people solved
Aug 8, 2025
Imc logo
Imc
Easy
Data Scientist Locked

Return all combinations that sum to target

This question evaluates combinatorial search and algorithmic problem-solving skills, focusing on recursion/backtracking, unbounded item usage, and enf...

Coding & Algorithms
4
0
59 people solved
Jan 6, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Choose root to minimize edge reversals

This question evaluates understanding of directed versus undirected graph representations, tree rooting, and optimization of edge orientations, testin...

Coding & Algorithms
6
0
110 people solved
Feb 11, 2026
Upstart logo
Upstart
Easy
Software Engineer

Scale Ingredient Quantities

Scale Ingredient Quantities Each ingredient is a string in the exact format "<quantity> <unit> <name>". Multiply every quantity by servings and return...

Coding & Algorithms
1
0
13 people solved
Jul 5, 2026
Upstart logo
Upstart
Easy
Software Engineer

Interleave Three Equal-Length Strings

Interleave Three Equal-Length Strings Given three strings of equal length, build a result by taking the character at index 0 from each string, then th...

Coding & Algorithms
0
0
8 people solved
Jul 5, 2026
Gusto logo
Gusto
Medium
Software EngineerSenior+ Locked

Fairly Distribute Money With Limits

This question tests practical algorithm design around greedy distribution with per-element constraints and iterative redistribution. It evaluates a ca...

Coding & Algorithms
0
0
10 people solved
Jun 3, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve two set and graph problems

Implement solutions for the following two data-structure / algorithm problems. --- Problem 1: Friend-purchase recommendations You are given three enti...

Coding & Algorithms
18
0
165 people solved
Oct 31, 2025
TikTok logo
TikTok
Medium
Software Engineer Locked

Parse a nested list from a string

This question evaluates proficiency in parsing nested data structures, string processing, hierarchical representation construction, and analysis of al...

Coding & Algorithms
6
0
75 people solved
Mar 1, 2026
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
Google logo
Google
Medium
Software Engineer Locked

Solve Shortest Paths and Rental Allocation

This question evaluates understanding of shortest-path algorithms and reachability in weighted graphs (including directed vs. undirected handling and ...

Coding & Algorithms
6
0
45 people solved
Apr 12, 2026
Meta logo
Meta
Medium
Software EngineerSenior+ AI

Build a FastAPI summarization service

Implement a minimal but production-ready FastAPI service for text summarization. Requirements: - Expose an endpoint POST /summarize. - The request bod...

Coding & Algorithms
5
0
51 people solved
Jan 19, 2026
OpenAI logo
OpenAI
Hard
Software Engineer Locked

Implement a Contiguous Memory Manager

This question evaluates competence in designing efficient data structures and algorithms for interval management, contiguous allocation and deallocati...

Coding & Algorithms
10
0
151 people solved
Jan 19, 2026
Google logo
Google
Medium
Software Engineer

Find the Largest Monotone Increasing Number

Find the Largest Monotone Increasing Number Problem Given a non-negative integer n, return the largest integer less than or equal to n whose decimal d...

Coding & Algorithms
6
1
18 people solved
Jul 4, 2026
Google logo
Google
Medium
Software Engineer

Check Whether Digits Are Monotone Increasing

Check Whether Digits Are Monotone Increasing Problem A non-negative integer has monotone increasing digits when every adjacent pair of digits is non-d...

Coding & Algorithms
4
0
18 people solved
Jul 4, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Design a single- and multi-threaded web crawler

Web Crawler (single-threaded, then multi-threaded) You are given: - A starting URL startUrl (e.g., "http://news.example.com/a/index.html"). - An inter...

Coding & Algorithms
64
0
527 people solved
Oct 26, 2025
Bloomberg logo
Bloomberg
Medium
Software EngineerSenior+ Locked

Minimize Travel Assignment Cost

This question evaluates algorithmic problem-solving in combinatorial optimization and dynamic programming, testing competency with cost-minimization, ...

Coding & Algorithms
1
0
14 people solved
Jun 1, 2026
Google logo
Google
Hard
Software EngineerNew Grad Locked

Compute Turnstile Crossing Times

This question evaluates proficiency in queue simulation, event-driven scheduling, and handling priority and tie-breaking rules while achieving linear ...

Coding & Algorithms
5
1
50 people solved
May 4, 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