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."
Determine If One Binary Tree Is a Substructure of Another
Given two binary trees A and B, determine whether B is a substructure of A. B is a substructure of A if there exists some node in A such that the subt...
Caesar Cipher with Translation-Table Optimization
Implement a Caesar cipher. Given a string text and an integer shift, return a new string in which every alphabetic character is rotated forward by shi...
Design a RAG Q&A Agent over Law Firm Legal Memos
Design a retrieval-augmented generation (RAG) AI agent that answers legal questions by grounding its responses in published memos and client alerts fr...
Build a React naval board
Build a simplified, single-player Battleship-style game board in React. There is no opponent, no turn-taking, and no networking — you are implementing...
Find User Airport at a Time
You are given a list of flight records. Each record contains: - user_id: the traveler identifier - departure_airport: the airport where the flight sta...
Design Employee-to-Employee Distance
Design an employee-to-employee distance system for a large company. The system takes two employees as input and returns a meaningful "distance" (or, e...
Estimate ads ranking revenue impact
You are the data scientist for an ads ranking team at a large social platform. The team has built a new ranking algorithm for feed ads. The new model ...
Design an Ad Pacing System
Design an advertising pacing system for a large-scale video / streaming advertising platform. Advertisers create campaigns with budgets, flight dates ...
Collapsible Code Editor: Brace Matching and Toggle
Collapsible Code Editor: Brace Matching and Toggle You are building a feature for a code editor. The editor holds source code written in a curly-brace...
Design a crossword puzzle solver system
Design a crossword puzzle solver Design a system that can solve a crossword puzzle. Inputs - A 2D board grid: - Some cells are blocked (black square...
Design an ad frequency capping system
Design a real-time ad frequency capping system for an ads platform. When the ad server is deciding whether to show an ad to a user, it must enforce ca...
LRU Cache
LRU Cache Implement a fixed-capacity cache with Least-Recently-Used eviction. When the cache is full and a new key is inserted, the key that was acces...
Longest Run of Ones After One Flip
Longest Run of Ones After One Flip You are given a binary array nums, where every element is either 0 or 1. You may flip at most one 0 to a 1 (you are...
Account Balance with Expiring Grants
Account Balance with Expiring Grants You are modeling a prepaid-credit ledger. Credits are added as time-limited grants; a grant can only be spent whi...
Moderator System with Ranking, Communities, and Demotion
You are designing a system that tracks moderator privileges for an online community using a time-ordered log of moderation actions. Each log record ca...
Design Collaborative Document Editing
Design a web-based collaborative document editing system similar to Google Docs. The system should allow multiple users to create, edit, and share ric...
Compute Theme Similarity
Implement a small set of Python functions to detect likely pirated Shopify themes by comparing their extracted feature sets using the Jaccard similari...
Design a Personalized Content Recommendation Engine
Design a Personalized Content Recommendation Engine You are asked to design the recommendation engine that powers the personalized home feed of a larg...
Prioritizing QA Work Under Deadline Pressure
Prioritizing QA Work Under Deadline Pressure You are a QA / test engineer embedded in a product team. A release deadline is a few days away, and there...
Fix the Broken Search Filter in a Book Catalog API
Fix the Broken Search Filter in a Book Catalog API A small book-management web app lets users search a library catalog. The frontend sends the user's ...