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

Solve meeting-room scheduling and shortest paths

This question evaluates proficiency in interval scheduling and resource allocation as well as shortest-path computation in weighted directed graphs, e...

Coding & Algorithms
8
0
151 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer Locked

Design a rolling hit counter API

This question evaluates proficiency with data structures for time-window aggregation and understanding of time/space trade-offs when counting events w...

Coding & Algorithms
9
0
104 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Find linked user records by weighted similarity

This question evaluates skills in similarity-based record linkage, weighted field scoring, and graph connectivity analysis within the Coding & Algorit...

Coding & Algorithms
7
0
59 people solved
Jan 6, 2026
TikTok logo
TikTok
Medium
Software Engineer Locked

Verify business accounts with progressive KYC rules

This question evaluates skills in string parsing, text normalization, rule-based validation, and token-based string matching within a KYC verification...

Coding & Algorithms
9
0
70 people solved
Jan 6, 2026
Ericsson logo
Ericsson
Medium
Software Engineer

Solve Triangle Rows and Top Frequencies

You have 1 hour to solve both coding problems. Problem 1: Build an Additive Number Triangle Given an integer numRows, return the first numRows rows of...

Coding & Algorithms
1
0
8 people solved
Apr 3, 2026
Temporal logo
Temporal
Medium
Software Engineer Locked

Implement Concurrent Any-True Shot

This question evaluates proficiency in concurrent programming, focusing on coordination, synchronization, early termination, and best-effort cancellat...

Coding & Algorithms
3
0
53 people solved
Apr 3, 2026
Asana logo
Asana
Medium
Software Engineer

Compute Products Excluding Each Index

You are given an integer array nums of length n. Return an array answer such that answer[i] equals the product of every element of nums except nums[i]...

Coding & Algorithms
1
0
12 people solved
Apr 2, 2026
Hudson logo
Hudson
Medium
Data Scientist Locked

Implement Buffer Parsers and Generic Map Class

This question evaluates proficiency in low-level C++ buffer parsing, memory and pointer management, safe binary deserialization, and template-based ge...

Coding & Algorithms
2
0
41 people solved
Apr 2, 2026
Toma logo
Toma
Easy
Frontend Engineer

Approximate Pi from Random Points

You are given an array pts of points in the unit square. Each point is represented as an array of two numbers [x, y], where 0 <= x <= 1 and 0 <= y <= ...

Coding & Algorithms
3
0
28 people solved
Apr 2, 2026
WeRide logo
WeRide
Medium
Software EngineerIntern Locked

Validate Bracket Sequence

This question evaluates proficiency with stack data structures, string parsing and matching logic, and the ability to reason about algorithmic time an...

Coding & Algorithms
2
0
19 people solved
Apr 2, 2026
Google logo
Google
Hard
Software Engineer Locked

Minimize maximum height along a grid path

This question evaluates algorithmic pathfinding and graph-modeling skills, specifically reasoning about grid-based route selection where the objective...

Coding & Algorithms
11
0
71 people solved
Jan 4, 2026
Bytedance logo
Bytedance
Medium
Software Engineer

Find the Longest Palindromic Substring in Linear Time

Find the Longest Palindromic Substring in Linear Time Implement longest_palindrome(s) and return the longest contiguous palindromic substring. If seve...

Coding & Algorithms
0
0
1 people solved
Apr 1, 2026
Decagon logo
Decagon
Easy
Software Engineer

Implement a CSAT Sliding Window Tracker

Design and implement a class that tracks customer satisfaction scores over a sliding time window. A customer support conversation has: - conversation_...

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

Implement a Batch Image Processor

This question evaluates a candidate's competency in image processing operations and parallel/concurrent programming, covering basic transformations (g...

Coding & Algorithms
11
0
82 people solved
Apr 1, 2026
Google logo
Google
Medium
Software EngineerNew Grad Locked

Can board states be transformed?

This question evaluates reasoning about constrained piece movement, string transformation, and invariant-based correctness in the Coding & Algorithms ...

Coding & Algorithms
12
1
182 people solved
Apr 1, 2026
Scale AI logo
Scale AI
Medium
Software EngineerNew Grad

Schedule Ready Tasks by Deadline

You are building a workflow scheduler. Each task has: - a unique task_id - an integer deadline - an optional list of prerequisite tasks that must be c...

Coding & Algorithms
63
0
485 people solved
Apr 1, 2026
Anthropic logo
Anthropic
Medium
Software Engineer Locked

Implement a longest-match tokenizer

This question evaluates string-processing and algorithmic implementation skills for greedy longest-match tokenization, including handling runs of unma...

Coding & Algorithms
4
1
73 people solved
Oct 19, 2025
Databricks logo
Databricks
Medium
Software EngineerSenior+

Find optimal commute mode in a city graph

You are designing a route planner that suggests the best way to commute between two points in a city using different transportation modes. The city is...

Coding & Algorithms
30
0
284 people solved
Oct 19, 2025
Ramp logo
Ramp
Medium
Software Engineer

Maximum Profit from Multi-Stock Trading Records

Maximum Profit from Multi-Stock Trading Records You are given a list of stock price records collected from a trading feed. Each record is a triple: - ...

Coding & Algorithms
0
0
10 people solved
Jan 1, 2026
Pinduoduo logo
Pinduoduo
Medium
Software Engineer Locked

Compute longest increasing subsequence length

This question evaluates understanding of sequence analysis and algorithmic problem solving, assessing competency with subsequences, reasoning about co...

Coding & Algorithms
3
0
46 people solved
Jan 1, 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