Coding & Algorithms Interview Questions
Practice 3,469 real coding and algorithms interview questions reported from interviews at Meta, Amazon, Google, Uber and Microsoft. The mix follows what these loops actually ask: arrays and strings, hash maps, two pointers and sliding windows, binary search, linked lists, trees and graphs, BFS and DFS, recursion and backtracking, dynamic programming, heaps and priority queues, and the occasional design-a-data-structure round. Roughly four in five are rated medium, which is where most technical screens sit; 477 are hard and cluster in onsite loops. 3,033 of them open in a console where you can run your solution against the test cases in Python, Java, C++ or JavaScript. 2,712 come from Software Engineer interviews, with the rest from Machine Learning Engineer, Data Scientist and Data Engineer loops, and 404 were set as take-home projects rather than live sessions.

"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."
Compute prices, distances, and Top-K for orders
Compute prices, distances, and Top-K for orders Build functions for a food‑delivery analytics module. Data: - Restaurants: id, (x, y) location, menu m...
Design a Least Frequently Used (LFU) Cache with O(1) Operations
Design and implement a data structure for a least frequently used (LFU) cache. Implement a class LFUCache with the following operations: - LFUCache(in...
Navigate maze via HTTP API
Question Implement a program that repeatedly calls a provided HTTP API which returns the next URL in a maze; continue following the URLs until reachin...
Find lowest common ancestor
Question LeetCode 236. Lowest Common Ancestor of a Binary Tree — Given a binary tree, find the lowest common ancestor (LCA) of two given nodes. Follow...
Find exit URL via BFS API calls
Question Design and implement a function that, given a starting URL "/", performs BFS or DFS by repeatedly sending HTTP GET requests of the form GET "...
Compute product of array except self
Given an integer array nums, return an array out where out[i] equals the product of all elements in nums except nums[i]. Do it in O(n) time using cons...
Find minimal time to serve customers
Find minimal time to serve customers You manage a bank with k tellers; teller i takes serviceTimes[i] minutes to serve one customer and works continuo...
Find k Smallest Pair Sums
This question evaluates skills in algorithm design, working with sorted arrays, pairing and ordering elements, and analyzing time and space complexity...
Implement an expiring GPU credits ledger
Implement an expiring GPU credits ledger for multiple users with three operations: 1) add_credit(user_id, amount, expiry_time): add a lot of credits t...
Implement paginated retrieval of transactions
Implement paginated retrieval of transactions Given a large list of transaction records (id, userId, amount, createdAt), implement APIs to return tran...
Solve top-K and string rotation match
Solve top-K and string rotation match 1) Given an unsorted array of integers and an integer k, return the k largest elements in descending order. Impl...
Solve two algorithm problems from a menu
Choose two problems from an algorithms menu (arrays, strings, hash maps, graphs). For each: 1) state clarifying assumptions, 2) implement a correct so...
Compute max profit with forced trades
Compute max profit with forced trades Given an array prices where prices[i] is the stock price on day i, solve two related tasks under a forced-trade ...
Solve anagram grouping and in-place allocator
This two-part question evaluates algorithmic problem-solving across string grouping and constrained in-place memory allocation, testing string-process...
Solve array duplicate flags and binary swaps
Problem 1: Flag duplicates on the left and right You are given an integer array nums of length n. For each index i, determine: 1. Left-duplicate: whet...
Implement O(1) randomized multiset
Implement O(1) randomized multiset Write code for a data structure that supports add(x), remove(x), and getRandom() in average O( 1) time where duplic...
Implement tiered shipping calculator
Implement tiered shipping calculator Implement in JavaScript a shipping-cost calculator with three progressively richer pricing models based on a conf...
Find a special person using knows(a,b)
Problem You are given n people labeled 0 to n-1 at a party. You can call an API: - knows(a, b) -> bool: returns true if person a knows person b, other...
Merge overlapping time intervals
Problem You are given a list of closed intervals intervals, where each interval is [start, end] and start <= end. Merge all intervals that overlap and...
Compute shortest delivery route with dangerous stops
Delivery Route Planning With Dangerous Stops You are given delivery stops (nodes) and a set of routes. Each route is a list of stops, and you can trav...