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
Jane Street logo
Jane Street
Hard
Software Engineer

Reach a Target Using Each Number At Most Once

Reach a Target Using Each Number At Most Once You are given an array of integers nums and an integer target. Decide whether you can build an arithmeti...

Coding & Algorithms
1
0
11 people solved
Sep 14, 2022
Jane Street logo
Jane Street
Hard
Software Engineer

Evaluate a Tokenized Arithmetic Expression

Evaluate a Tokenized Arithmetic Expression You are given an arithmetic expression that has already been tokenized for you — you do not need to write a...

Coding & Algorithms
2
0
18 people solved
Sep 14, 2022
NVIDIA logo
NVIDIA
Hard
Software EngineerSenior+

Determine Whether One Point Can Reach Another

Determine Whether One Point Can Reach Another You start at a point (sx, sy) with positive integer coordinates. From (x, y), one move may transform the...

Coding & Algorithms
1
0
21 people solved
Jul 16, 2026
NVIDIA logo
NVIDIA
Hard
Software EngineerSenior+

Count Substrings with No Repeated Characters

Count Substrings with No Repeated Characters Given a lowercase English string s, return the number of nonempty contiguous substrings whose characters ...

Coding & Algorithms
1
0
22 people solved
Jul 16, 2026
Asana logo
Asana
Medium
Software Engineer

Find the K Closest Points to the Origin

Find the K Closest Points to the Origin Given points, a list of distinct integer coordinate pairs [x, y], and an integer k, return the k points closes...

Coding & Algorithms
2
1
18 people solved
Jul 16, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Merge Two Sorted Arrays

Merge Two Sorted Arrays Given two integer arrays sorted in nondecreasing order, return a new array containing every value from both inputs in nondecre...

Coding & Algorithms
1
0
12 people solved
Jul 14, 2026
Whatnot logo
Whatnot
Hard
Software Engineer

Remove All Adjacent Duplicate Pairs

Remove All Adjacent Duplicate Pairs Given a string s, repeatedly remove pairs of equal adjacent characters. A removal can make a new equal pair adjace...

Coding & Algorithms
1
0
12 people solved
Jul 14, 2026
Vanta logo
Vanta
Medium
Software Engineer

Implement Adjacent-Line Uniq

Implement Adjacent-Line Uniq Implement the core behavior of the Unix-style uniq utility: combine consecutive equal lines into one run. The interview r...

Coding & Algorithms
1
0
14 people solved
Jul 13, 2026
Netflix logo
Netflix
Medium
Software Engineer

Simulate a TTL Cache with LRU Eviction

Simulate a TTL Cache with LRU Eviction Implement a deterministic simulator for a cache that combines per-key expiration with a fixed-capacity least-re...

Coding & Algorithms
1
0
15 people solved
Jul 11, 2026
Instacart logo
Instacart
Medium
Software Engineer

Build a Progressive Banking System

Build a Progressive Banking System The source reports progressive account, activity-ranking, expiring-transfer, and merge features but not exact retur...

Coding & Algorithms
1
0
14 people solved
Jul 11, 2026
Anduril logo
Anduril
Medium
Software Engineer

Find Heap Objects Not Referenced by the Stack

Find Heap Objects Not Referenced by the Stack Each heap object has a unique integer address. In this first version, heap objects do not reference one ...

Coding & Algorithms
1
0
15 people solved
Jul 10, 2026
Okx logo
Okx
Medium
Software EngineerSenior+

Group Strings By Anagram Signature

Given a list of strings, group the strings so that each group contains words that are anagrams of each other. Discuss both a sorting-based signature a...

Coding & Algorithms
0
0
10 people solved
Jul 8, 2026
Meta logo
Meta
Medium
Software EngineerSenior+

Choose the Cheapest Round Trip

Choose the Cheapest Round Trip You are given two arrays of equal length. departure[i] is the cost of departing on day i, and return_cost[j] is the cos...

Coding & Algorithms
1
1
17 people solved
Jul 6, 2026
Apple logo
Apple
Medium
Software Engineer

Solve Subset Sum And Return All Matching Subsets

Given an array of non-negative integers and a target, first determine whether any subset sums to the target using dynamic programming with O(target) s...

Coding & Algorithms
2
0
7 people solved
Jul 6, 2026
Sesame Ai logo
Sesame Ai
Medium
Software Engineer

Summarize Transcript Events in a Sliding Window

Summarize Transcript Events in a Sliding Window Implement transcript_window_summaries(events, window_size). events is an arrival-ordered list of (user...

Coding & Algorithms
2
0
14 people solved
Jul 5, 2026
Upstart logo
Upstart
Easy
Software Engineer

Report Where a Value Appears

Report Where a Value Appears Given a target and an even-length integer list, return four binary flags describing whether the target occurs: 1. at an e...

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

Remove Duplicate Integers While Preserving Order

Remove Duplicate Integers While Preserving Order Return the distinct integers from an input list in the order of their first appearance. Function Sign...

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

Compute a Point Set's Bounding Rectangle

Compute a Point Set's Bounding Rectangle Given two-dimensional integer points, return the smallest axis-aligned rectangle containing every point. Repr...

Coding & Algorithms
1
0
14 people solved
Jul 5, 2026
Amazon logo
Amazon
Hard
Software Engineer

Find Two-Word Compound Words

Given a list of unique lowercase words, return every word that can be formed by concatenating exactly two other words from the same list. For each com...

Coding & Algorithms
1
0
18 people solved
Jul 5, 2026
Amazon logo
Amazon
Easy
Software Engineer

Implement Regular Expression Matching

Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...

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