Coding & Algorithms Interview Questions
Practice 3,429 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.

"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."
Count Connected Groups in a Relationship Matrix
Count Connected Groups in a Relationship Matrix Problem Implement countConnectedGroups(related). related is an n x n relationship matrix encoded as an...
Rebalance Experiment Buckets with Minimal Reassignment
Rebalance Experiment Buckets with Minimal Reassignment Problem Implement rebalanceBuckets(bucketCount, groups, targetPercentages) -> rebalancedGroups....
Search a Rotated Sorted Array in One Binary-Search Pass
Search a Rotated Sorted Array in One Binary-Search Pass Problem Implement searchRotated(values, target) -> index. values was formed by taking a strict...
Return the K Closest Points with Deterministic Ties
Return the K Closest Points with Deterministic Ties Implement k_closest(points, target, k). Each point and the target are integer pairs. Return exactl...
Generate Every Ordered Sum Using Ones and Twos
Generate every ordered string of ones and twos whose digit values sum to a target integer, with no duplicates and lexicographic output. The problem te...
Determine Reachability for a Chinese-Chess Horse with Blocked Legs
Determine Reachability for a Chinese-Chess Horse with Blocked Legs Implement a function that determines whether a Chinese-chess horse can reach a targ...
Find a Horizontal Cut That Bisects Rectangle Area
Solve a computational-geometry problem that asks for the horizontal line dividing the combined area of many disjoint rectangles in half. The exercise ...
Find Shared Motion Periods Across Camera Streams
Find Shared Motion Periods Across Camera Streams A camera emits readings (timestamp, intensity) sorted by strictly increasing timestamp. Intensity is ...
Find the Longest Even-Length Word
Find the Longest Even-Length Word Implement longest_even_word(sentence). Words are separated by one or more spaces. Return the first word among those ...
Return the K Smallest Values from Sorted Arrays
Return the K Smallest Values from Sorted Arrays Problem Implement kSmallestFromSortedArrays(arrays, takeCount) -> values. Each inner array is sorted i...
Process a Mutable Stock-Price Log
Process a Mutable Stock-Price Log Build a small stock-price log and process a sequence of queries and updates. `python def process_stock_log( init...
Build a Progressive Employee Tracker
Build a Progressive Employee Tracker The source reports four tracker stages but not exact calls or failure values. The command driver and ordering rul...
Compute Edit Distance
Compute Edit Distance Given two strings, return the minimum number of single-character operations needed to transform the first string into the second...
Build the Largest Allowed Number Below a Limit
Build the Largest Allowed Number Below a Limit Problem Implement largestAllowedBelow(limit, digits) -> result. limit is a positive decimal integer rep...
Find the Earliest Anagram Window
Find the Earliest Anagram Window Problem Implement firstAnagramStart(text, pattern) -> index. Return the zero-based start index of the earliest contig...
Simulate Players Moving Under a Watcher's Gaze
Simulate Players Moving Under a Watcher's Gaze A one-dimensional road starts at 0 and ends at length. Each player begins at a supplied position and wa...
Count Complete Highway Journeys from Toll Logs
Count Complete Highway Journeys from Toll Logs Each toll record is (timestamp, plate, location, booth_type). booth_type is ENTRY, MAINROAD, or EXIT. T...
Execute a TTL Key-Value Store with Transactions
Execute a TTL Key-Value Store with Transactions Problem Implement executeKvCommands(commands) -> outputs for an in-memory key-value store. Commands ar...
Reverse a Linked List in Groups of K
Implement reverse_k_group(values, k) for a singly linked list represented by the array values in traversal order. Reverse every consecutive group of e...
Find Clients Outside Provider Coverage
Problem Implement outside_coverage(providers, clients, max_distance). Each provider has an id, a list of specialties, and a two-dimensional location =...