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."
Determine Whether P's Position Is Unique
You are given an R x C rectangular grid and a set of named entities. Each entity must be placed in exactly one distinct cell. You are also given a col...
Implement local maxima, bagging, and k-means
Solve the following programming tasks. 1) Find all “local maxima” in a streaming temperature array You are cleaning sensor data for temperature-fluctu...
Implement Connect Four Winner Detection
Implement a Connect Four-style game engine. The board has 6 rows and 7 columns. Two players alternate turns. On each turn, the current player chooses ...
Implement an LRU Cache
Design and implement a fixed-capacity key-value cache that evicts the least recently used item when it becomes full. Support the following operations:...
Find a Bounded Subarray and Largest Square
Implement the following two independent coding tasks. Task A: Longest bounded-range subarray Given an integer array nums and an integer limit, return ...
Implement rotated array binary search with duplicates
Given an integer array nums that is a non-decreasing array rotated an unknown number of times. Duplicates may exist. Implement a function that returns...
Reverse nodes in even-length linked-list groups
Problem Given the head of a singly linked list, you will traverse the list in contiguous groups of increasing size: the 1st group has size 1, the 2nd ...
Implement Longest-Match Text Replacement
You are given a text string and a dictionary of replacement entries. Each dictionary entry has the form token:id, where token is a string pattern and ...
Evaluate Symbol Expressions
You are given a map from symbol names to arithmetic expressions. Each expression may contain integer constants, other symbol names, parentheses, and t...
Compute Nearest Destination Distances
You are given an m x n grid representing a city map. Each cell contains one of the following characters: - D: a destination - X: an obstacle - .: an o...
Implement a Formula Spreadsheet
Design and implement a small in-memory spreadsheet. The spreadsheet must support cell labels such as A1 and B10, where a label consists of uppercase l...
Maximize Boundary-Difference Subarray Sum
Given an integer array nums and an integer k, find the maximum possible sum of a non-empty contiguous subarray whose first and last elements differ by...
Count Trips From Vehicle Logs
You are given a text log of vehicle events on a road system. Each log record contains: - license_plate: a string identifying a vehicle - event_type: o...
Implement IPv4 iterators and CIDR expansion
Problem: IPv4 Iterators and CIDR Expansion You are implementing utilities to iterate over IPv4 addresses. An IPv4 address is in dotted-decimal form: A...
Minimize maximum height along a grid path
You are given an m x n grid heights of distinct integers representing terrain heights. You start at the top-left cell (0,0) and want to reach the bott...
Solve expression evaluator and string decoder
1) Implement an arithmetic expression evaluator that reads expressions from a text file (one expression per line) and outputs the evaluated result for...
Design an in-memory banking service
Design an in-memory banking service supporting timestamped operations and edge-case semantics. Implement: ( 1) create_account(id, t): Create a new acc...
Implement compile-time function type verification
Implement a C++20 compile-time utility to verify whether a callable matches a target function type. Requirements: create a primary template is_callabl...
Find Shortest Queue with Few Calls
You are given a list of queues of integers. For each queue, the only available operations are isEmpty() and poll(), where poll() removes and returns t...
Implement Interval Insert and Dedup
This interview round contained two coding problems: 1. Insert and merge intervals. You are given a list of non-overlapping intervals sorted by start t...