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."
Introduce yourself and explain your project
Behavioral questions 1. Introduce yourself (education/background, current role, what you focus on). 2. Where are you from? (brief personal background ...
Format text into fixed-width justified lines
You are given an array of strings words (each string is a word with no spaces) and an integer maxWidth. Return a list of lines (strings) that formats ...
Explain concurrency and distributed fundamentals
A backend fundamentals round covered the following topics: 1. Multithreading in Java: Suppose multiple threads update a shared counter and a shared ma...
Sort a nearly sorted array
Given an array of length \(n\) in which every element is at most \(k\) positions away from its location in the fully sorted order, design an algorithm...
Compute probability two arrivals meet within 15 minutes
Probability puzzle Two people plan to meet, but they arrive independently at a random time within the next 1 hour. - Person A’s arrival time is unifor...
Answer Leadership and GenAI Behavioral Questions
Prepare structured behavioral interview answers for the following prompts. Use specific real experiences, quantify impact when possible, and be ready ...
Implement Interval Insert and Dedup
This interview round contained two coding problems: 1. Insert and merge intervals. You are given a list of non-overlapping intervals sorted by start t...
Implement two string utility functions
Implement the following Python functions: 1. number_of_character(string, char) - Return the number of times character char appears in string. - ...
Return the largest file size in a directory
Problem (Bash / File System) Implement a Bash function (or shell snippet) that returns the maximum file size (in bytes) under a given directory. Requi...
Compute and plot a precision–recall curve
Precision–Recall (PR) curve coding / evaluation You are given a binary classifier’s outputs on a dataset: - y_true: array of true labels in \(\{0,1\}\...
Design and evaluate a fraud detection strategy
Context You are interviewing for a Fraud Data Scientist role at a payments company. The company has a fraud model and some operational constraints. Pa...
Compute sums and max path in N-ary tree
You are given the root of an N-ary tree (each node can have 0..k children). Implement the Node class yourself. Assume each node stores an integer valu...
Clean OCR data and build an LLM dataset
Problem: OCR data practice (cleaning → LLM-ready data) You are given an OCR dataset intended to train or fine-tune an LLM to improve OCR text quality....
Design a Top-K trending items service
Design a system that returns the Top K items (e.g., videos/posts/products) by popularity. Requirements - API to fetch: GET /topk?window=10m&k=100 retu...
Explain how browser authentication works with JWTs
Explain, at a high level, how authentication typically works in a browser-based web app when using JWTs. Cover: - Where the token is stored (e.g., mem...
Format VARCHAR amounts into $ with M/B suffix
You are given a table transactions with: - id (primary key) - amount_str (VARCHAR): a numeric string representing an amount in dollars (e.g., '950', '...
Merge intervals and design rating APIs
Problem 1: Merge overlapping intervals You are given a list of closed intervals intervals, where intervals[i] = [start_i, end_i] and start_i <= end_i....
Implement an in-memory key-field-value DB with TTL
In-Memory DB with TTL + Scan + Backup/Restore Implement an in-memory database storing records by (key, field) -> value with optional TTL. Data model /...
Find secret word with match-count feedback
Problem You are given a list of unique lowercase words, all of the same length (e.g., length = 6). One of these words is a secret word. You can intera...
Compute final prices with next smaller discount
You are given an integer array prices of length n, where prices[i] is the original price of the i-th item. For each item i, find the first index j > i...