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

Solve Array Merge and Parentheses Cleanup

You are asked to solve two coding problems. Problem 1: Merge Three Sorted Arrays Given three integer arrays, each sorted in nondecreasing order, merge...

Coding & Algorithms
1
0
13 people solved
Apr 29, 2026
Confluent logo
Confluent
Medium
Software Engineer

Implement Tail and Find Monster Cost

This entry contains two coding tasks from the same interview category. Task A: Implement a file tail operation Implement a function tail(filePath, n) ...

Coding & Algorithms
5
0
65 people solved
Apr 29, 2026
Coinbase logo
Coinbase
Hard
Software Engineer

Implement an In-Memory Database

Design and implement an in-memory database that stores records by key. Each record is a map from field to integer value. Implement the following funct...

Coding & Algorithms
4
0
46 people solved
Apr 29, 2026
Snapchat logo
Snapchat
Medium
Machine Learning EngineerSenior+

Solve Decimal Coin Change

Given a list of coin denominations represented as decimal values and a target amount represented as a decimal value, return the minimum number of coin...

Coding & Algorithms
1
0
14 people solved
Apr 28, 2026
Bytedance logo
Bytedance
Medium
Site Reliability Engineer

Implement Sorted Search and Array Updates

Implement the following independent array functions. Part 1: Search a sorted array Given a sorted array of integers nums in nondecreasing order and an...

Coding & Algorithms
2
0
34 people solved
Apr 28, 2026
Uber logo
Uber
Medium
Software Engineer

Find Earliest Full Connectivity Timestamp

You are given: - A list of all user IDs in a ride-sharing system. - A chronological text log of ride-sharing events. Each relevant event contains a ti...

Coding & Algorithms
1
0
14 people solved
Apr 26, 2026
Netflix logo
Netflix
Medium
Software EngineerSenior+ Locked

Implement Cache, Undo, and DFS

This question evaluates implementation skills in data structures, algorithmic complexity, and state-management patterns by combining a timed in-memory...

Coding & Algorithms
3
0
51 people solved
Apr 26, 2026
Google logo
Google
Medium
Software Engineer

Solve Quickselect, Tree Distance, and Prefix Substrings

You are given three independent coding tasks. 1. Implement Quickselect - Given an unsorted integer array nums and an integer k, return the k-th sma...

Coding & Algorithms
3
0
17 people solved
Apr 25, 2026
OpenAI logo
OpenAI
Medium
Frontend Engineer

Build a Streaming Chat Input

Implement a minimal front-end chat interface, similar to a stripped-down AI assistant (think a bare-bones ChatGPT). The user types a prompt, submits i...

Coding & Algorithms
21
0
188 people solved
Apr 25, 2026
Meta logo
Meta
Easy
Software Engineer

Solve Tree View and Triplet Sum

You are asked to solve two coding problems. Problem 1: Return the nodes visible from the right Given the root of a binary tree, return the values of t...

Coding & Algorithms
0
0
10 people solved
Apr 24, 2026
Lyft logo
Lyft
Hard
Software Engineer

Implement Grid Spread and Transactional Store

You have two coding tasks. Task A: Compute Contamination Spread Time Given an m x n grid: - 0 means an empty cell. - 1 means a fresh item. - 2 means a...

Coding & Algorithms
1
0
11 people solved
Apr 24, 2026
J.P. Morgan logo
J.P. Morgan
Medium
Data ScientistSenior+

Implement Integer Square Root

Given a non-negative integer x, implement sqrt(x) and return the integer part of its square root, i.e., floor(sqrt(x)). Requirements: - Do not use a b...

Coding & Algorithms
14
0
89 people solved
Apr 24, 2026
Hackerrank logo
Hackerrank
Medium
Machine Learning Engineer

Count Good Subsequences With Equal Character Frequencies

A subsequence is formed by deleting zero or more characters from a string without changing the order of the remaining characters. A non-empty subseque...

Coding & Algorithms
1
0
14 people solved
Apr 23, 2026
Hudson logo
Hudson
Medium
Software Engineer

Solve Watcher Simulation And Integer Conversion

You are asked to solve two independent coding tasks. Task 1: Count players that reach the finish There is a one-dimensional track with integer positio...

Coding & Algorithms
1
0
15 people solved
Apr 23, 2026
Uber logo
Uber
Medium
Software EngineerSenior+

Find the First Unique IP

You are processing a chronological stream of server hit records. Each record contains an IP address as a string. Design and implement a component that...

Coding & Algorithms
19
0
186 people solved
Apr 23, 2026
Netflix logo
Netflix
Medium
Machine Learning Engineer

Implement Streaming Word Counter

Implement a class that records word frequencies from a stream of text. The class should support the following operations: 1. add_text(text: str) -> No...

Coding & Algorithms
0
0
5 people solved
Apr 22, 2026
Tml logo
Tml
Medium
Software Engineer

Implement a Resizable Deque

Implement a double-ended queue (deque) data structure backed by a circular array. Your deque should support insertion and removal from both ends and s...

Coding & Algorithms
3
0
44 people solved
Apr 22, 2026
Airbnb logo
Airbnb
Hard
Software Engineer

Flatten a Nested Integer List

Flatten a Nested Integer List A nested list contains either integers or other nested lists, to arbitrary depth. Return all integers in left-to-right o...

Coding & Algorithms
1
0
13 people solved
Apr 21, 2026
Airbnb logo
Airbnb
Hard
Software Engineer

Solve a Two-by-Three Sliding Puzzle

Solve a Two-by-Three Sliding Puzzle You are given a 2 x 3 board containing the integers 0 through 5 exactly once. The value 0 is the empty square. In ...

Coding & Algorithms
1
0
10 people solved
Apr 21, 2026
Airbnb logo
Airbnb
Hard
Software Engineer

Count Consecutive Positive Integer Sums

Count Consecutive Positive Integer Sums Given a positive integer n, return the number of ways to write n as a sum of one or more consecutive positive ...

Coding & Algorithms
1
0
10 people solved
Apr 21, 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