Software Engineer Coding & Algorithms Interview Questions
Practice 2,712 real Coding & Algorithms interview questions for Software Engineer roles. From companies including Meta, Amazon, Google, Uber, Microsoft.

"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."
Solve BST and Grid Query Problems
This question evaluates understanding of binary search tree order-statistics and grid reachability under threshold constraints, testing competencies i...
Solve 15 common Apple coding questions
The post summarizes high-frequency coding problems reported for Apple Software Engineer interviews. Practice the following algorithm and data-structur...
Implement spreadsheet undo/redo operations
Problem Design a data structure that simulates Undo/Redo for a simplified spreadsheet editor. A user performs a sequence of operations on cells. Each ...
Process exchange prints, volume checks, and client orders
This question evaluates a candidate's ability to implement real-time stream processing, sliding-window aggregation for time-based volume calculations,...
Design server allocation for multi-type nodes
Design a service to manage a large pool (about 100, 000) of server nodes. Each node can satisfy multiple instance types; clients call getServer(reqNum...
Design a menu manager with enums
Design and implement a console-based restaurant menu management program. Requirements: ( 1) There are exactly three fixed item categories represented ...
Design out-of-order windowed stream processor
Design out-of-order windowed stream processor Design an event processor for an unbounded, infinite stream of events. Each event has the fields id, tim...
Return the Most Frequent Integer with a Stable Tie-Breaker
Return the Most Frequent Integer with a Stable Tie-Breaker Given a nonempty integer array, return the value that appears most often. If several values...
Convert stack samples to trace events
Question Implement convertToTrace(samples) that, given a chronologically ordered vector of stack samples (each sample contains a timestamp and a call-...
Fix a Corrupted Bootloader Instruction
This question evaluates the ability to simulate instruction-level program execution, reason about control flow and mutable program state (instruction ...
Implement Byte Formatting and Cafeteria Billing
This question evaluates precision in numeric formatting and unit conversion for byte sizes, along with stateful simulation of capacity-constrained eve...
Solve Several Algorithm Problems
This collection evaluates proficiency in string processing (longest palindromic substrings), graph connectivity and union‑find style concepts for 2D p...
Find minimal time for four people crossing
Assume there are four people who need to cross a narrow bridge at night using a single flashlight. - Each person \(i\) requires a different, known amo...
Solve interval merging and histogram area
The coding round included two algorithm problems: 1. Merge overlapping intervals: Given a list of closed intervals [[start1, end1], [start2, end2], .....
Track Island Counts as Land Is Added
Track Island Counts as Land Is Added Problem Implement trackIslandCounts(grid, additions) -> counts. grid is a rectangular array containing 0 for wate...
Design a Tic-Tac-Toe Engine
This question evaluates algorithm design and data structure competency, emphasizing state representation, time-space trade-offs, and techniques for ac...
Implement Expiring LRU Cache
Implement an in-memory key-value cache with least-recently-used eviction and per-entry expiration. The cache has a fixed positive capacity. Each inser...
In-Memory Key-Value Store with Nested Transactions
This question evaluates a candidate's ability to design an in-memory data structure that supports layered, nested transactional state with commit and ...
Find Shortest Square-Sum Path
This question evaluates algorithmic problem-solving skills with number-theoretic reasoning about perfect squares and the ability to reconstruct a mini...
Implement a Merkle-tree repo diff
You are given two snapshots of a source-code repository on disk, each represented by a root directory path. Implement a Merkle tree over the directory...