Coding & Algorithms Interview Questions

Practice 3,429 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.4k Questions 368 Companies08.11.2026
Showing 20 results
Role
Nextdoor logo
Nextdoor
Medium
Software Engineer

Merge Weekly Time Intervals

Implement merge_weekly_intervals(intervals). Each interval is [start_day, start_time, end_day, end_time]. Days are Mon, Tue, Wed, Thu, Fri, Sat, or Su...

Coding & Algorithms
0
0
3 people solved
Aug 3, 2026
Lead logo
Lead
Medium
Software Engineer

Process Calendar Events with Deletion, Pagination, and Overlap Queries

Process Calendar Events with Deletion, Pagination, and Overlap Queries Process operations against an in-memory calendar. Every event has a unique name...

Coding & Algorithms
1
0
16 people solved
Jul 8, 2026
Google logo
Google
Hard
Software Engineer

Count Overlapping Rectangle Updates on a Grid

Count Overlapping Rectangle Updates on a Grid Implement range_add_counts(n, rectangles). Start with an n x n matrix of zeroes. Each rectangle is repre...

Coding & Algorithms
11
1
61 people solved
Jul 10, 2026
Cisco logo
Cisco
Easy
Software Engineer

Longest Substring Without Repeated Characters

Problem Implement longest_unique_substring(s). Return the longest contiguous substring of s that contains no repeated character. If several substrings...

Coding & Algorithms
0
0
9 people solved
Jul 16, 2026
Remitly logo
Remitly
Medium
Software Engineer

Validate a Bijective Substitution Cipher

Validate a Bijective Substitution Cipher Given a plaintext string and an encoded string of equal length, determine whether one consistent one-to-one c...

Coding & Algorithms
0
0
5 people solved
Jul 24, 2026
Gusto logo
Gusto
Medium
Software Engineer

Distribute Money Fairly Under Recipient Caps

Distribute Money Fairly Under Recipient Caps Problem Implement distribute(amount, recipients). amount is a pool of nonnegative integer minor currency ...

Coding & Algorithms
0
0
3 people solved
Aug 1, 2026
Gusto logo
Gusto
Medium
Software Engineer

Calculate Tax from Progressive Brackets

Calculate Tax from Progressive Brackets Problem Implement calculateProgressiveTax(income, upperBounds, ratesBps) -> tax. income is a nonnegative integ...

Coding & Algorithms
0
0
3 people solved
Aug 1, 2026
Anthropic logo
Anthropic
Medium
Software Engineer

Generate Function Profiling Events from Stack Samples

Generate Function Profiling Events from Stack Samples You receive timestamped call-stack samples in increasing timestamp order. Each sample is (timest...

Coding & Algorithms
6
0
63 people solved
Apr 13, 2026
Amazon logo
Amazon
Easy
Software Engineer

Find the Single Value in a Sorted Array of Pairs

Find the Single Value in a Sorted Array of Pairs Problem Implement singleNonDuplicate(values) -> value. values is sorted in nondecreasing order. Exact...

Coding & Algorithms
1
0
16 people solved
Jun 22, 2026
Retell logo
Retell
Medium
Software Engineer

Query an Indexed In-Memory Numeric Table

Query an Indexed In-Memory Numeric Table Problem Implement queryIndexedRows(rows, queries) -> answers for one immutable in-memory table containing onl...

Coding & Algorithms
0
0
4 people solved
Jul 27, 2026
Netflix logo
Netflix
Medium
Software Engineer

Analyze Overlap in Closed Intervals

Implement closed_interval_overlap(intervals, query_points). Each interval [start, end] is closed, so it contains both endpoints. Return [[maximum_over...

Coding & Algorithms
0
0
3 people solved
Jul 31, 2026
Deshaw logo
Deshaw
Medium
Software Engineer

Maximum L1 Distance Between Equal-Length Subarrays

Problem Implement max_l1_subarray_distance(a, b) for two nonempty integer arrays. Choose one nonempty contiguous subarray from a and one nonempty cont...

Coding & Algorithms
1
0
18 people solved
Jun 18, 2026
Moodys logo
Moodys
Medium
Software Engineer

Find the Longest Subarray with at Most Two Distinct Values

Find the Longest Subarray with at Most Two Distinct Values Given an array of integers, return the length of the longest contiguous subarray containing...

Coding & Algorithms
0
0
4 people solved
Jul 25, 2026
Optiver logo
Optiver
Medium
Software Engineer Locked

Maintain Price Levels For A Single-Symbol Order Book

Review a single-symbol order book implementation prompt with insert, modify, cancel, and price-level lookup callbacks. The interview topic focuses on ...

Coding & Algorithms
83
4
802 people solved
Jun 26, 2026
Sig logo
Sig
Easy
Software Engineer

Find Company Tickers Mentioned in a News Headline

Find Company Tickers Mentioned in a News Headline Problem Implement findMentionedTickers(companyNames, tickers, headline). companyNames[i] maps to tic...

Coding & Algorithms
0
0
2 people solved
Aug 3, 2026
Asana logo
Asana
Medium
Software Engineer

Solve a Jigsaw Puzzle

You are given a collection of jigsaw puzzle pieces. Each piece has four edges — top, right, bottom, and left — and a helper function match(edgeA, edge...

Coding & Algorithms
75
0
792 people solved
Apr 2, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Find and Count Maximum-Score Grid Paths

Find the maximum-scoring path from a fixed top-row cell to the last row of a grid using diagonal, downward, and limited two-row jump moves. Return the...

Coding & Algorithms
3
0
33 people solved
Jun 11, 2026
Decagon logo
Decagon
Medium
Software Engineer

Enumerate 4x4 Tic-Tac-Toe Games

You are given an empty $4 \times 4$ board. Two players, X and O, alternate turns with X moving first. A player wins as soon as they place three of the...

Coding & Algorithms
68
0
637 people solved
Mar 9, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Infection Spread Simulation with Death Threshold

This question evaluates a candidate's ability to implement grid-based simulation with multi-state cellular automaton logic, testing practical applicat...

Coding & Algorithms
10
1
60 people solved
Jun 20, 2026
Rbcroyalbank logo
Rbcroyalbank
Medium
Machine Learning Engineer

Process Operations for an In-Memory Key-Value Store

Process Operations for an In-Memory Key-Value Store Implement an in-memory key-value store that supports adding or replacing a value, deleting a key, ...

Coding & Algorithms
1
0
17 people solved
Jul 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