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
Flipster logo
Flipster
Easy
Software Engineer

Compute max profit from one stock trade

Given an integer array prices where prices[i] is the stock price on day i, compute the maximum profit you can achieve by choosing at most one day to b...

Coding & Algorithms
2
0
33 people solved
Feb 12, 2026
Baseten logo
Baseten
Medium
Software Engineer Locked

Parallelize chunked file download and verify integrity

This question evaluates understanding of parallelized I/O, concurrency control, failure and retry handling, and data-integrity verification for chunke...

Coding & Algorithms
8
0
73 people solved
Feb 12, 2026
Stripe logo
Stripe
Medium
Software Engineer Locked

Implement bitmap font render/compress/invert

This question evaluates proficiency in bitmap and matrix manipulation, lossless compression/decompression techniques, and modular code reuse for trans...

Coding & Algorithms
7
0
81 people solved
Feb 12, 2026
Uber logo
Uber
Medium
Software Engineer Locked

Compute max reachable cells per threshold

This question evaluates a candidate's ability to reason about constrained grid reachability and efficient handling of multiple threshold queries, test...

Coding & Algorithms
35
0
261 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Check pivot after removing one element

This question evaluates array-manipulation skills, cumulative-sum/prefix-sum reasoning, and robustness in handling negative values and duplicates, tes...

Coding & Algorithms
8
0
141 people solved
Feb 12, 2026
TikTok logo
TikTok
Medium
Machine Learning EngineerNew Grad

Implement stack variants and path-sum check

Coding tasks Solve the following algorithmic problems. 1) MinStack Design a stack supporting: - push(x), pop(), top() - getMin() returning the minimum...

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

Build a next-word frequency predictor

This question evaluates understanding of data structures and algorithms for frequency counting and associative lookups, including preprocessing-versus...

Coding & Algorithms
38
1
272 people solved
Feb 12, 2026
Apple logo
Apple
Hard
Software Engineer

Compute conflicts and minimum meeting rooms

You are given a list of meeting room booking requests. Each request is a half-open time interval [start, end), meaning it uses the room starting at st...

Coding & Algorithms
20
0
186 people solved
Feb 12, 2026
Airbnb logo
Airbnb
Medium
Software Engineer Locked

Find smallest permutation under constraints

This question evaluates digit-manipulation and combinatorial permutation skills, along with numeric ordering and representation concerns such as leadi...

Coding & Algorithms
37
2
349 people solved
Feb 12, 2026
Airbnb logo
Airbnb
Medium
Software Engineer Locked

Compute board-game score from regions

This question evaluates grid traversal and connected-component identification skills along with region-based aggregation (counting cells and summing c...

Coding & Algorithms
44
1
536 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer

Compute minimum number of rooms needed

Problem You are given a list of meetings, each with a start time and end time. A single room can host only one meeting at a time. Two meetings overlap...

Coding & Algorithms
25
1
398 people solved
Feb 12, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Extend BFS maze solver with keys and arrows

This question evaluates mastery of breadth-first search, state-space modeling for grid-based traversal, and handling augmented states like keys and on...

Coding & Algorithms
21
0
155 people solved
Feb 12, 2026
Apple logo
Apple
Medium
Software Engineer

Zero out duplicates and sort an array

Coding question You are given an integer array arr of length about 75. - The data is not sorted. - The array may contain duplicate values. - You must ...

Coding & Algorithms
20
0
180 people solved
Feb 12, 2026
Bloomberg logo
Bloomberg
Medium
Software Engineer Locked

Solve common string/tree/grid interview tasks

This problem set evaluates practical coding competencies including string parsing and sign handling, positional and frequency-based matching for feedb...

Coding & Algorithms
10
0
77 people solved
Feb 12, 2026
Rubrik logo
Rubrik
Hard
Software Engineer

Find largest connected group of overlapping intervals

You are given n people, where person i works during an inclusive time interval [start_i, end_i]. Define a communication graph: - Each person is a node...

Coding & Algorithms
5
0
75 people solved
Feb 12, 2026
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Remove duplicates in-place from unsorted array

This question evaluates understanding of in-place array manipulation, duplicate removal, and algorithmic analysis under strict extra-space constraints...

Coding & Algorithms
8
0
86 people solved
Feb 12, 2026
Meta logo
Meta
Medium
Machine Learning Engineer Locked

Maximize unique characters from a word list

This question evaluates algorithmic problem-solving skills focused on combinatorial subset selection and character-uniqueness constraints in strings, ...

Coding & Algorithms
11
0
84 people solved
Feb 12, 2026
Sonatus logo
Sonatus
Hard
Software Engineer

Compute days until a higher reading

You are given an array readings[] representing sensor values over consecutive days (e.g., temperatures). For each day i, compute how many days you mus...

Coding & Algorithms
6
0
55 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

Min deletions to avoid overlap in first k

This question evaluates array and sequence manipulation skills, set-based reasoning about value overlap, and the ability to compute minimal edits whil...

Coding & Algorithms
20
0
342 people solved
Feb 12, 2026
Ramp logo
Ramp
Medium
Software Engineer

Multi-Level Warehouse Storage with Weighted Retrieval

Multi-Level Warehouse Storage with Weighted Retrieval You are building the in-memory engine for an automated warehouse. The warehouse is a stack of ho...

Coding & Algorithms
0
0
7 people solved
Feb 11, 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