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

Design an In-Memory Database

Implement a simple in-memory database with a flexible, schema-less record model. Requirements: - Each record is a mapping from column_name to value. -...

Coding & Algorithms
1
0
27 people solved
Apr 6, 2026
Uber logo
Uber
Medium
Data ScientistNew Grad Locked

Can one car serve all riders?

This question evaluates understanding of interval scheduling and conflict detection, testing skills in time-interval reasoning, sorting, and efficient...

Coding & Algorithms
6
0
71 people solved
Apr 6, 2026
Meta logo
Meta
Medium
Site Reliability Engineer Locked

Implement a Streaming VMStat Alert

This question evaluates streaming data processing skills, sliding-window counting algorithms, and efficient online state management for metric monitor...

Coding & Algorithms
5
0
73 people solved
Apr 6, 2026
Netflix logo
Netflix
Hard
Software EngineerSenior+

Implement a Versioned Key-Value Store

Design and implement an in-memory versioned key-value store. Requirements: - put(key, value, timestamp): store value for key at the given integer time...

Coding & Algorithms
0
0
11 people solved
Apr 5, 2026
Snowflake logo
Snowflake
Hard
Software Engineer

Compute Inherited Role Privileges

You are given n roles. The array initialPrivileges has length n, where initialPrivileges[i] is the list of privileges directly assigned to role i. You...

Coding & Algorithms
1
0
14 people solved
Apr 5, 2026
Nextdoor logo
Nextdoor
Medium
Machine Learning EngineerNew Grad

Build Ranked Feed With Photo Batching

You are given a list of feed objects. Each object has: - id: a unique string - type: one of Normal, Video, or Photo - score: a numeric ranking score C...

Coding & Algorithms
1
0
15 people solved
Apr 5, 2026
Meta logo
Meta
Medium
Software Engineer Locked

Solve delimiter and CSV tasks

This question evaluates skills in string parsing and bracket balancing, CSV/file parsing and joining, computation of derived values, and sorting, emph...

Coding & Algorithms
6
0
52 people solved
Apr 5, 2026
Bytedance logo
Bytedance
Medium
Data Scientist

Probability That One Fair Die Beats Another

Probability That One Fair Die Beats Another Two fair dice, A and B, are represented by integer arrays. Each array element is one physical face, so dup...

Coding & Algorithms
0
0
7 people solved
Apr 4, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Rotate a Matrix In Place

This question evaluates proficiency in in-place matrix and array manipulation, understanding of spatial transformations, and consideration of space an...

Coding & Algorithms
3
0
57 people solved
Apr 4, 2026
Hot Agent Startup logo
Hot Agent Startup
Medium
Software Engineer

Find High-Intensity Time Periods

Given a list of time-series readings, where each reading is {timestamp, intensity}, and a numeric threshold, return all maximal time periods during wh...

Coding & Algorithms
0
0
7 people solved
Apr 3, 2026
Uber logo
Uber
Medium
Software Engineer

Solve Balanced Permutations and Tree Reversals

You have 90 minutes to solve the following two independent coding problems. Problem 1: Balanced Prefix Values in a Permutation You are given a permuta...

Coding & Algorithms
10
0
111 people solved
Apr 3, 2026
Discord logo
Discord
Hard
Data Engineer

Implement Game Metadata Lookups

You are given a list of game metadata records. Build an in-memory representation that can store each game's name, release date, platforms, genre, publ...

Coding & Algorithms
11
0
143 people solved
Apr 3, 2026
Pinterest logo
Pinterest
Medium
Machine Learning Engineer

Design Hierarchical Permission Checks

You are given a hierarchy of groups represented as a tree, for example World -> Country -> City. Each advertiser can be granted access at any group no...

Coding & Algorithms
2
0
26 people solved
Apr 3, 2026
Databricks logo
Databricks
Medium
Software Engineer Locked

Solve Grid Path and Graph Sampling

This question evaluates graph algorithms and probabilistic/combinatorial reasoning, covering multi-criteria shortest-path optimization (minimizing tra...

Coding & Algorithms
4
0
41 people solved
Apr 3, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement a Parallel Image Processor

This question evaluates understanding of parallel and process-based concurrency, batch image-processing pipelines, transform correctness, and per-job ...

Coding & Algorithms
31
0
330 people solved
Apr 3, 2026
Persona logo
Persona
Hard
Software Engineer

Implement a Versioned Key-Value File Store

Implement an in-memory file store that supports progressive requirements. Operations include set(key, value), get(key), delete(key), scan(), scan_pref...

Coding & Algorithms
1
0
11 people solved
Apr 2, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Simulate Plant Infection With Controlled Burning

You are given an R by C grid of plants. Each plant is initially healthy, infected, recovered, or dead. A plant has up to four orthogonal neighbors. De...

Coding & Algorithms
2
0
9 people solved
Apr 2, 2026
Databricks logo
Databricks
Medium
Backend Engineer

Find First Anagram Occurrence

Given two strings text and pattern, return the starting index of the first substring in text that is an anagram of pattern. If no such substring exist...

Coding & Algorithms
13
0
132 people solved
Apr 2, 2026
Lyft logo
Lyft
Medium
Software EngineerSenior+

Solve substring and worker assignment

The interview included two algorithm problems: 1. Shortest covering substring: Given two strings s and t, return the shortest contiguous substring of ...

Coding & Algorithms
3
0
35 people solved
Apr 2, 2026
Intuit logo
Intuit
Easy
Software Engineer

Validate bracket sequence

Given a string s containing only the characters (, ), [, ], {, and }, determine whether the brackets are properly matched. A string is valid if: - Eve...

Coding & Algorithms
6
0
44 people solved
Apr 2, 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