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
Point72 logo
Point72
Medium
Machine Learning Engineer

Find the Smallest String After One Decrement

You are given a string s consisting only of lowercase English letters. You must perform exactly one operation: 1. Choose one non-empty contiguous subs...

Coding & Algorithms
2
0
23 people solved
Jan 21, 2026
Walmart Labs logo
Walmart Labs
Medium
Software Engineer

Minimize the Maximum Edge on a Path

Minimize the Maximum Edge on a Path You are given a weighted undirected graph and two vertices, start and target. Define the stress of a path as the l...

Coding & Algorithms
0
0
6 people solved
Apr 12, 2026
Harvey logo
Harvey
Medium
Software Engineer

Implement a Hierarchical File System

Implement an in-memory hierarchical file system. Create a class FileSystem with the following methods: - FileSystem() initializes an empty file system...

Coding & Algorithms
0
0
13 people solved
Apr 12, 2026
Molocoads logo
Molocoads
Hard
Software Engineer

Support Dynamic Range Sums

Implement a data structure over an integer array nums. Part 1: If the array never changes, support sumRange(left, right) that returns the sum of eleme...

Coding & Algorithms
2
0
39 people solved
Apr 12, 2026
Meta logo
Meta
Medium
Site Reliability EngineerSenior+

Validate abbreviations and brackets

The coding round included two short implementation problems: 1. Abbreviation validation Given a lowercase word word and a string abbr, determine wheth...

Coding & Algorithms
1
0
28 people solved
Apr 12, 2026
Jane Street logo
Jane Street
Easy
Software Engineer

Sort trade executions into a canonical order

You are building a small component in a trading system that consumes trade execution records from an upstream feed. The records may arrive out of orde...

Coding & Algorithms
58
0
414 people solved
Dec 15, 2025
Zoox logo
Zoox
Medium
Data EngineerSenior+

Write Transaction Analytics SQL Queries

You are given a credit-card transaction dataset with the following tables. transactions | column | type | description | |---|---|---| | transaction_id...

Coding & Algorithms
0
0
9 people solved
Apr 11, 2026
Harvey logo
Harvey
Medium
Software Engineer

Implement a Formula Spreadsheet

Design and implement a small in-memory spreadsheet. The spreadsheet must support cell labels such as A1 and B10, where a label consists of uppercase l...

Coding & Algorithms
1
0
23 people solved
Apr 11, 2026
Attentive logo
Attentive
Medium
Software EngineerNew Grad

Implement Due Broadcast Sender

You are building a notification system. You are given: - A mapping from company_id to a list of subscriber IDs. - A list of broadcast logs. Each log c...

Coding & Algorithms
2
0
29 people solved
Apr 11, 2026
Render logo
Render
Medium
Software Engineer

Count Blocked Rate-Limited Requests

You are given an in-memory request log for a web platform. Each log entry has: - timestamp: an ISO-8601 UTC timestamp - request_ip: the client IPv4 ad...

Coding & Algorithms
5
0
46 people solved
Feb 26, 2026
Ramp logo
Ramp
Medium
Software Engineer Locked

Build a simplified Wordle game in React

This question evaluates a candidate's competency in React-based front-end development, covering component design, state management, asynchronous HTTP ...

Coding & Algorithms
20
0
160 people solved
Jan 18, 2026
Bytedance logo
Bytedance
Medium
Software Engineer Locked

Implement Interval Insert and Dedup

This question evaluates skills in array and interval data-structure manipulation, in-place modification under space constraints, and general algorithm...

Coding & Algorithms
2
0
34 people solved
Apr 10, 2026
Harvey logo
Harvey
Medium
Machine Learning Engineer Locked

Implement a Spreadsheet With Formulas

This question evaluates understanding of data structures and algorithms for dependency management, expression parsing and evaluation, and detection of...

Coding & Algorithms
3
0
26 people solved
Jun 1, 2026
Zillow logo
Zillow
Medium
Machine Learning Engineer

Write pseudocode for a ReAct-style loop

Coding prompt (pseudocode) Write pseudocode (does not need to compile) for a ReAct-style agent loop that alternates between reasoning and actions. Req...

Coding & Algorithms
5
0
67 people solved
Nov 8, 2025
Anthropic logo
Anthropic
Medium
Software Engineer

Parse and Reconstruct Stack Trace

Given a multi-line stack trace string from a single thread (e.g., each frame is in the form 'at Module::Function(file:line)'), design and implement a ...

Coding & Algorithms
44
0
665 people solved
Sep 6, 2025
Citi logo
Citi
Medium
Software Engineer

Explain data structure fundamentals

Explain how a hash map works internally: hashing, collision resolution strategies (separate chaining vs. open addressing), load factor, and resizing. ...

Coding & Algorithms
7
0
73 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Find top-k frequent elements efficiently

Given an array (or stream) of integers and an integer k, return any ordering of the k most frequent values. Implement a solution using a heap and disc...

Coding & Algorithms
10
0
90 people solved
Sep 6, 2025
Intuit logo
Intuit
Medium
Software Engineer

Solve word segmentation and React palindrome validation

Part A — String segmentation: Given a non-empty string s and a dictionary of valid words, design an algorithm to determine whether s can be segmented ...

Coding & Algorithms
8
0
76 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Data Scientist

Optimize switching puzzle solution

Consider a switching puzzle on an m×n grid of lights where toggling a cell flips its state and that of its orthogonal neighbors (Lights Out variant). ...

Coding & Algorithms
9
0
172 people solved
Sep 6, 2025
Optiver logo
Optiver
Medium
Data Scientist

Compare two programs for equivalence

You are given two short programs (or functions) that process an integer array A (|A| ≤ 10^ 5). Determine whether they are functionally equivalent for ...

Coding & Algorithms
10
0
115 people solved
Sep 6, 2025

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