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

Design an in-memory filesystem and circular queue

Part A — Design an in-memory hierarchical file system. Requirements: - Support operations: ls(path), mkdir(path), createFile(path, content), appendToF...

Coding & Algorithms
8
0
113 people solved
Aug 11, 2025
Luma logo
Luma
Medium
Machine Learning Engineer Locked

Solve Seven Python Image and Data Tasks

This multi-part Python assessment evaluates image and data processing competencies including array and matrix manipulation (center crop, rotation), nu...

Coding & Algorithms
0
0
9 people solved
May 25, 2026
Adia logo
Adia
Easy
Data Scientist Locked

Compute Score Difference in Reversing Array Game

This question evaluates array manipulation and stateful simulation skills, parity-based control flow reasoning, and the ability to analyze time comple...

Coding & Algorithms
0
0
8 people solved
May 25, 2026
Google logo
Google
Medium
Software Engineer Locked

Consolidate On-Call Rotation Segments

This question evaluates proficiency with interval manipulation, set management, sorting and event ordering, and the use of appropriate data structures...

Coding & Algorithms
5
0
17 people solved
May 25, 2026
Uber logo
Uber
Medium
Backend Engineer Locked

Replace Dashes With Nearest Letters

This question evaluates a candidate's competence in grid traversal, distance computation using Manhattan metrics, and handling tie-breaking rules incl...

Coding & Algorithms
0
0
10 people solved
May 25, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve three coding tasks: binary search, tree path, subarray

Solve three coding tasks: binary search, tree path, subarray Solve the following coding tasks: 1) In a sorted array, every value appears exactly twice...

Coding & Algorithms
7
0
55 people solved
Aug 10, 2025
Apple logo
Apple
Medium
Software Engineer

Compute top three scores per student

Compute top three scores per student You are given a list of (student_id, score) records. Return, for each student, their highest three scores in desc...

Coding & Algorithms
7
0
80 people solved
Aug 9, 2025
Google logo
Google
Hard
Software Engineer

Check Digits and Combine Ranges

You are asked to solve two independent coding tasks. Task 1: Check Whether an Integer Reads the Same Backward Given an integer x, return true if its d...

Coding & Algorithms
0
0
13 people solved
Mar 29, 2026
Capital One logo
Capital One
Medium
Data Scientist

Design late-tolerant streaming window aggregator

You receive an unbounded stream of events: (event_time, user_id, category). Events may arrive up to 48 hours late and are not ordered by time. Design ...

Coding & Algorithms
8
0
78 people solved
Oct 13, 2025
NVIDIA logo
NVIDIA
Hard
Data Scientist

Design and explain robust web APIs for ML inference

Design an HTTP API for Image-Based Model Predictions Context: Design an HTTP REST API that serves predictions for image inputs (e.g., classification, ...

Coding & Algorithms
3
0
65 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Machine Learning Engineer

Maximize grid-path expression and count sawtooth subarrays

Problem 1: Maximize a valid expression along a grid path You are given an m x n grid grid. Each cell contains either: - an operator: '+' or '-', or - ...

Coding & Algorithms
16
0
122 people solved
Oct 13, 2025
Akuna Capital logo
Akuna Capital
Hard
Software Engineer

Maximize Distinct Values with Cross-Array Swaps

Maximize Distinct Values with Cross-Array Swaps Given arrays a and b of equal length and an integer k, perform at most k swaps. Each swap chooses one ...

Coding & Algorithms
0
0
1 people solved
May 24, 2026
Meta logo
Meta
Medium
Machine Learning Engineer AI Locked

Build Friend Recommendations

This question evaluates proficiency with graph data structures, set operations, uniform random sampling, counting mutual connections, and deterministi...

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

Design and implement an LRU cache

This question evaluates knowledge of data structures, algorithmic design, API design, and memory/resource management required to implement an efficien...

Coding & Algorithms
8
0
112 people solved
Feb 8, 2026
Molocoads logo
Molocoads
Medium
Machine Learning EngineerIntern

Simulate bubble elimination and maximize common prefix

You are given two independent coding tasks (as in a multi-question OA). Solve each. Task A — Grid “bubble/candy” elimination simulation You are given ...

Coding & Algorithms
7
0
76 people solved
Dec 27, 2025
Microsoft logo
Microsoft
Medium
Software Engineer

Determine most popular concert city

Determine most popular concert city Given a set of concert venue vote records, determine which city is the most popular. How would you normalize city ...

Coding & Algorithms
3
0
57 people solved
Aug 4, 2025
Datadog logo
Datadog
Medium
Software Engineer

Implement log storage and querying

Design a data structure to record log entries and support efficient queries. Each log has a timestamp (milliseconds), severity (INFO/WARN/ERROR), serv...

Coding & Algorithms
1
0
24 people solved
Sep 6, 2025
Amazon logo
Amazon
Medium
Software Engineer

Solve server updates and grid inconvenience minimization

1) You are given an integer array server of length n, where server[i] is the number of requests the i-th server can process. Over multiple days, you r...

Coding & Algorithms
5
0
78 people solved
Sep 6, 2025
Oracle logo
Oracle
Medium
Software Engineer

Solve three DSA problems: trie, window, intervals

1) Design and implement an autocomplete service. Support insert(word) to add a word and suggest(prefix) to return up to five existing words that start...

Coding & Algorithms
4
0
79 people solved
Sep 6, 2025
Microsoft logo
Microsoft
Medium
Software Engineer Locked

Solve Three Coding Interview Problems

This set of problems evaluates competency in algorithmic problem-solving, including merging sorted arrays with duplicate elimination, reasoning about ...

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