Coding & Algorithms Interview Questions
Practice 3,013 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."
Join tables to map userId to name
Problem You are given three tables represented as 2D string arrays (each row is a record, no headers). You need to produce a mapping from userId → cus...
Detect overlap of two linked lists with cycles
You are given the heads of two singly linked lists headA and headB. Each list may be: - A standard acyclic linked list, or - A cyclic linked list (con...
Merge overlapping intervals
Given an array of closed intervals intervals, where each interval is [start, end] and start <= end, merge all overlapping intervals and return an arra...
Return sorted values after quadratic transform
Problem You are given a sorted integer array nums (non-decreasing order) and integers a, b, c that define a quadratic function: \[ f(x) = ax^2 + bx +...
Implement a rate limiter at scale
Problem Design and implement a rate limiter that enforces request limits per key (e.g., per user ID or API key). Requirements - Implement allow(key, t...
Maximize the minimum value along a grid path
You are given an m x n integer matrix A. You start at the top-left cell (0,0) and want to reach the bottom-right cell (m-1,n-1) by moving only in 4 di...
Group strings that are anagrams
Problem: Group anagrams Given an array of strings strs, group the strings that are anagrams of each other. Two strings are anagrams if they contain th...
Determine whether a word exists in a letter grid
Given an m x n grid of characters board and a string word, determine whether word can be constructed from sequentially adjacent cells. Rules: - Adjace...
Minimize total distance to a store
Question 1: Choose a CVS location to minimize total distance You are given an M x N grid grid containing only 0 and 1. - grid[r][c] = 1 means there is...
Solve order-statistics and XOR-triplet problems
You are given two separate algorithmic problems. Problem 1: Count smaller elements to the right Given an integer array nums of length n, for each inde...
Solve string transform and min-move sorting
Problem 1: "Goat Latin"-style string transformation You are given a sentence s consisting of words separated by single spaces. Transform it into a new...
Coordinate workers across two exclusive targets
You are given two exclusive resources (targets) labeled "A" and "B". You need to start N = 10 parallel workers (e.g., processes or threads), each of w...
Solve three string/stack/backtracking problems
You are given three independent coding tasks (solve each one). Unless otherwise stated, implement a function with the described input/output. Problem ...
Generate combinations and permutations
Given two integers n and k, where 1 <= k <= n, write code for two related tasks using the numbers 1 through n: 1. Generate all unique combinations of ...
Design KV store with sliding-window average QPS
Problem Design an in-memory key–value store that supports mutation operations and can report the average QPS (queries per second) over a recent time w...
Compute last-5-minute QPS in memory
Problem You are building a lightweight in-memory component that tracks the query load (QPS) of a service. Design a data structure with two operations:...
Choose optimal guesses for green-only Wordle
Problem You are playing a simplified 5-letter word guessing game. - There is a hidden secret word of length 5. - You have a dictionary of valid 5-lett...
Implement minimal-cost overtime/contractor allocation
You must cover H extra engineering hours this week at minimum cost using employee overtime and optional contractors. Each employee i has a maximum ove...
Maximize outfits with distinct colors
You're given counts of items by color; each outfit must contain exactly 3 items, all of distinct colors. You cannot reuse items. Input formats: either...
Implement longest increasing subarray with one deletion
Given an array of integers nums, return the length of the longest strictly increasing contiguous subarray you can obtain by deleting at most one eleme...