Interview Questions
Practice the exact questions companies are asking right now.

"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."
Design Connect-N winner detector
Question Design a data structure for the Connect-N game: pieces are dropped into a column (occupying the lowest empty cell). Implement move(column, pl...
Find names similar by one swap
Question LeetCode 859. Buddy Strings – Given a target string and a list of strings, return all list entries that can match the target by swapping at m...
Randomly partition array into k segments
Question Given a list of integers and an integer k representing the number of segments, write a function that randomly partitions the list into k non-...
Convert bitmap into ASCII characters
Question Given an array/string of 0-1 bits representing a bitmap font, write code to render each character as a grid using '.' for 0 and '#' for 1, an...
Stone Pile Doubling Game: Can One Pile Be Emptied?
You are given two piles of stones containing a and b stones respectively (both piles start non-empty). You repeatedly apply the following move: - Let ...
Fermi Estimation with Confidence Intervals: How Many Houses Does One Year of US Netflix Spending Buy?
Estimate how many houses could be purchased with the total amount that people in the United States spend on Netflix subscriptions in one year. You sta...
Count the Days Between Two Dates
Count the Days Between Two Dates You are given two calendar dates as strings in YYYY-MM-DD format. Return the number of days between them as a non-neg...
Maximum Group of Pairwise Strangers in an Acquaintance Tree
You are given a social network of n people, labeled 0 through n - 1. For some pairs of people, it is known that the two people in the pair know each o...
Validate a Binary Tree Built from Directed Edges
Validate a Binary Tree Built from Directed Edges You are given a list of directed edges. Each edge is a pair (parent, child) of positive-integer node ...
Coin-Flip Race to Four: Game Length and a Conditional Win Probability
Two players play a coin-flipping game with a single fair coin. The coin is flipped once per round. Every heads counts for Player 1, and every tails co...
Optiver SWE Intern HR Screen: Project Deep Dive — Hardest Parts, What You'd Do Differently, and Questions to Ask
You are on a 20–30 minute recruiter (HR) phone screen for a Software Engineering Intern position at Optiver, a high-frequency trading firm. The call s...
Pick a Number 1-100 Where the Higher Pick Pays a 10-Point Penalty: Optimal Strategy
Two players simultaneously each pick an integer from 1 to 100 (inclusive). The winner is decided as follows: take the larger of the two picks, subtrac...
Dice Duel: 30-Sided Die vs. 20-Sided Die with One Blind Reroll
Alice and Bob play a dice game. Alice has a fair 30-sided die (faces $1$ through $30$) and Bob has a fair 20-sided die (faces $1$ through $20$). Each ...
Identify OS component causing process starvation
A system with 2 CPU cores runs 5 identical processes continuously. Four processes get equal CPU time, but the fifth appears to get none. Which part of...
Minimum Common Pairwise Correlation Among Seven Identically Distributed Random Variables
Suppose $X_1, X_2, \ldots, X_7$ are seven random variables defined on the same probability space. Each has mean $0$ and variance $1$, and they are ide...
Analyze User Flags and Review Outcomes for Moderation Prioritization
UserFlags +---------------+--------------+----------+---------+ | User_FirstName| User_LastName| Video_ID | Flag_ID | +---------------+--------------+...
Determine Product Buyer Count and Interaction Percentage
interactions +-----------+----------+------------+----+------------+ | seller_id | buyer_id | product_id | li | create_date| +-----------+----------+-...
Advertising for local businesses boosting popular posts
Boosting Popular Posts for Local SMBs You are evaluating an experiment where small local businesses can pay to boost their popular organic posts. Defi...
How to Design a Proportional Randomized Sampler?
Scenario Randomized promotion engine must pick an item proportional to its score, but scores have no upper bound. Question Design a sampler pick() tha...
Implement Binary Search for Policy Violation Logs
violations +--------+---------+---------------+ | pin_id | type | violation_date| +--------+---------+---------------+ | 0 | spam | 2022-01...