Coding & Algorithms Interview Questions
Practice 2,960 real Coding & Algorithms interview questions for 2026. Coding & Algorithms interview questions for top tech firms like Meta, Amazon, Google, Uber, and TikTok — real questions from actual interviews with detailed solutions — to power your interview preparation. This collection is sharply focused on algorithmic patterns (arrays, strings, sliding windows, trees/graphs, dynamic programming, greedy, two-pointers, and hashing), clean, review-ready code, and the explanation skills that distinguish hires. In 2026 expect familiar medium-to-hard problems plus newer twists: AI-enabled or multi-file coding rounds at some companies, more emphasis on explainability and edge-case reasoning, and occasional real-world performance constraints (streaming, concurrency, memory limits). Interviewers evaluate problem framing, algorithm choice, complexity trade-offs, test-case thinking, and communication under time pressure. Best prep mixes pattern-based practice, timed mock interviews, code-review style polishing, and rehearsed explanations of complexity and tradeoffs. Focus your last-mile prep on writing correct, readable code quickly and on explaining why your solution is robust and efficient for production scenarios.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Compare Complete or Partial Hands
Implement a hand comparison engine for a simplified poker-like card game. Each player has a hand represented by an array of card strings. A card is en...
Implement string-based big integer multiplication
Question Implement multiplyStrings(a, b) to multiply two non-negative integers given as decimal strings and return their product as a decimal string. ...
Solve build ordering and expression evaluation
Part A — Dependency ordering: You are given an integer n (0 ≤ n ≤ 200000) representing tasks labeled 0..n-1 and a list of prerequisite pairs [a, b] me...
Serialize and deserialize a dictionary trie
Question Design and implement serialization and deserialization for a trie (prefix tree) that stores a large dictionary of lowercase English words. Th...
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 - ...
Assign Minimum Workers to Jobs
You are given a line-delimited text stream representing jobs. Each job record contains a start time and a duration, for example 1030 30, meaning the j...
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...
Implement cache and merge intervals
The interview included two coding tasks: 1. Implement a fixed-capacity key-value cache with get(key) and put(key, value). Both operations must run in ...
Generate all subsets (handle duplicates)
Problem Given an integer array nums, return all possible subsets (the power set). Part A (no duplicates) Assume all elements in nums are distinct. Ret...
Compute minimum meeting rooms on circular day
Problem You are given a list of meetings scheduled within a 24-hour day. Time is cyclic: after 23:59 the next minute is 00:00. Each meeting is represe...
Implement a banking operations system
Implement a simple banking system that manages multiple accounts with initial balances. Support operations: deposit(accountId, amount), withdraw(accou...
Compute maximum currency exchange rate
You are given a set of currencies and the direct exchange rates between some pairs of them. Each direct exchange rate tells you how many units of one ...
Simulate Threshold Grid Infection
You are given an m x n binary grid where 1 means infected and 0 means healthy, along with an integer K. The system evolves in discrete time steps. Dur...
Solve SQL and Python coding tasks
You are given a small library system with the following relational schema and several Python data-processing tasks. Answer the SQL questions and imple...
Maintain a Stream Median
Design a data structure for a stream of integers. It must support the following operations efficiently: - add_num(x): insert an integer x into the str...
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...
Implement a Snowflake Query Client
Build a lightweight query client for a Snowflake-like data warehouse. Implement a QueryClient that can: 1. Connect to the warehouse using configuratio...
Implement an In-Memory Database
Implement a simple in-memory relational database that processes a sequence of tokenized commands. You are given commands: List[List[str]], where each ...
Merge two sorted linked lists
Given two singly linked lists sorted in ascending order, merge them into one singly linked list that is also sorted in ascending order. Requirements: ...
Design a 25,000-CSV ETL pipeline
You state that you built an ETL pipeline to preprocess 25,000 CSV files and load the results into a centralized database. Design the pipeline in a way...