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

Calculate Courier Earnings

Design a function to calculate total courier pay from a set of delivery orders. Assume time is represented as integer minutes, and intervals are half-...

Coding & Algorithms
9
0
71 people solved
Jan 9, 2026
Oracle logo
Oracle
Medium
Data Scientist

Count Interior Islands After Flooding

You are given an m x n binary grid representing land and water. - 1 = land - 0 = water An island is a maximal group of land cells connected 4-directio...

Coding & Algorithms
2
0
28 people solved
Jan 9, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Compute distance of each node to a cycle

This question evaluates proficiency in graph algorithms, including understanding unicyclic graph structure, cycle identification, and computing minimu...

Coding & Algorithms
4
0
85 people solved
Jan 9, 2026
Bloomberg logo
Bloomberg
Easy
Software Engineer Locked

Compute meeting rooms and evaluate RPN

This multi-part question evaluates interval reasoning and resource-allocation skills for meeting room scheduling alongside stack-based expression eval...

Coding & Algorithms
9
0
85 people solved
Jan 9, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Build User Journey Path Summary

Implement a function build_summary(logs) -> str that summarizes user journeys as a trie-like path tree. You are given a list of action logs. Each log ...

Coding & Algorithms
1
0
17 people solved
Jan 8, 2026
Uber logo
Uber
Hard
Software Engineer Locked

Solve jump maximization and palindromic path queries

This pair of problems evaluates algorithmic problem-solving skills: the first assesses array-based path optimization and stateful score maximization u...

Coding & Algorithms
9
0
85 people solved
Jan 8, 2026
Bytedance logo
Bytedance
Medium
Machine Learning Engineer

Find Highest Product Segment

Given an integer array nums, find the maximum product obtainable from any non-empty contiguous segment. A contiguous segment must contain adjacent ele...

Coding & Algorithms
1
0
26 people solved
Jan 7, 2026
Pilot logo
Pilot
Easy
Software EngineerNew Grad

Solve Anagram Without Sorting

Given two strings s and t, return true if t is an anagram of s, and false otherwise. You may not sort either string. An anagram uses exactly the same ...

Coding & Algorithms
2
0
19 people solved
Jan 7, 2026
Google logo
Google
Hard
Software Engineer Locked

Return top-k subset sums in descending order

This question evaluates proficiency in combinatorial reasoning, algorithmic optimization for large search spaces, and efficient extraction of top-k va...

Coding & Algorithms
15
0
116 people solved
Jan 7, 2026
Expedia logo
Expedia
Hard
Software Engineer

Solve three interview coding problems

This interview report described three coding tasks: 1. Generate a run-length spoken sequence Start with s1 = "1". To build the next term, read th...

Coding & Algorithms
5
0
75 people solved
Jan 6, 2026
Sig logo
Sig
Medium
Software Engineer

Solve theatre seating and ticker extraction

Implement the following two coding tasks. 1. Allocate groups in a movie theater You are given an integer n representing the number of rows in a movie ...

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

Implement an expiring counter class

This question evaluates a candidate's competency in implementing a sliding-window expiring counter, testing knowledge of streaming algorithms, data st...

Coding & Algorithms
10
0
89 people solved
Jan 6, 2026
Snowflake logo
Snowflake
Hard
Software Engineer Locked

Implement an in-memory file system

This question evaluates a candidate's ability to design and implement in-memory file system data structures and APIs, covering hierarchical directory ...

Coding & Algorithms
13
0
159 people solved
Jan 6, 2026
Google logo
Google
Medium
Software EngineerIntern Locked

Design a logger that returns top-K messages

This question evaluates skills in designing in-memory data structures and algorithms for frequency counting and interval querying, including extractin...

Coding & Algorithms
8
0
76 people solved
Jan 6, 2026
eBay logo
eBay
Medium
Software Engineer Locked

Implement list and grid transformation tasks

This question evaluates skills in character classification, array and list manipulation, greedy repartitioning logic, and iterative grid simulation wi...

Coding & Algorithms
4
0
48 people solved
Jan 6, 2026
Meta logo
Meta
Hard
Software Engineer Locked

Count three-digit numbers with distinct digits

This question evaluates a candidate's understanding of digit manipulation, basic combinatorics, and implementation of value-range constraints in codin...

Coding & Algorithms
2
0
42 people solved
Jan 6, 2026
Pinterest logo
Pinterest
Medium
Software Engineer Locked

Implement sparse matrix storage, addition, and multiplication

This question evaluates understanding of sparse matrix representations, algorithmic efficiency for linear algebra operations, and the ability to manip...

Coding & Algorithms
10
0
136 people solved
Jan 6, 2026
Citadel logo
Citadel
Hard
Software Engineer Locked

Determine order of alien alphabet

This question evaluates the ability to infer ordering constraints among characters, model dependencies from ordered examples, and reason about edge ca...

Coding & Algorithms
15
0
149 people solved
Jan 6, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Validate a JSON-like string

This question evaluates parsing and string-processing skills, focusing on structural validation of JSON-like text including matching and nesting of br...

Coding & Algorithms
10
0
134 people solved
Jan 6, 2026
Amazon logo
Amazon
Medium
Software EngineerIntern Locked

Find minimum total range-increment to sort

This question evaluates algorithmic problem-solving skills in array manipulation and optimization, focusing on reasoning about range-increment operati...

Coding & Algorithms
6
0
51 people solved
Jan 6, 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