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."
Implement comment sorting and nesting
You are given mock comment data on the frontend. Each comment has: - id: unique comment ID - userId: author ID - timestamp: creation time - content: c...
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 ...
Determine if a 14-tile hand is winning
You are given an integer array tiles of length 14 representing a Mahjong-like hand. Each integer is a tile value from 1 to 9 (single suit). You may re...
Find Shortest Paths in Road Network
You are reviewing code for a road-network graph. The domain objects are: `java class Location { String name; Location(String name) { this.name...
Compute top-K branches by openings
Compute top-K branches by openings Given a stream of account-opening events (branch_id, user_id, timestamp), design algorithms and data structures to ...
Implement spreadsheet cells with formulas
Design an in-memory spreadsheet that supports these operations on cells such as A1, B2, and ranges such as A1:B2: - Set(cell, value): assign an intege...
Determine most popular concert city
Determine most popular concert city Given a set of concert venue vote records, determine which city is the most popular. How would you normalize city ...
Multi-Agent Collision Simulator (Unicycle Kinematics)
This question tests practical coding ability in robotics simulation, specifically implementing unicycle kinematics and discrete-time modeling via forw...
Resolve routing-number to bank mapping
You are given bank-routing data coming from one or more JSON sources. Each source provides a list of records like: `json { "routing": "026009593", "ba...
Solve meeting and tree problems
This question evaluates skills in interval manipulation and boolean-based merging, along with binary-tree traversal and side-view extraction for strin...
Solve Reported OA Coding Problems
The post describes several algorithm questions from an online assessment. The concrete problems that can be reconstructed are: 1. Remove Blocks in a G...
Compute minimum added stones to balance a tree
This question evaluates competency in tree algorithms, subtree aggregation, and integer resource balancing by requiring reasoning about hierarchical s...
Rearrange array to maximize positive prefix sums
This question evaluates array manipulation, prefix-sum reasoning, and greedy/combinatorial optimization skills for maximizing a permutation-based metr...
Find hotel pairs to cover a split stay
You are implementing a simplified “split stay” feature. Problem You are given: - n hotels (or listings), indexed 0..n-1. - For each hotel i, an unsort...
Extend a Maze Solver
You are given an existing codebase for a maze game and solver. The maze is represented as a 2D grid containing: - S: start cell - T: target cell - .: ...
Add Two Signed Decimal Character Arrays
Add Two Signed Decimal Character Arrays Add two signed decimal integers supplied as strings without converting the complete inputs to built-in integer...
Implement Social Follow Recommendations
This question evaluates graph data structure design and traversal, set-based aggregation and ranking logic, and the ability to justify data structure ...
Longest Substring Without Repeating Characters
This question tests a software engineer's ability to apply sliding window techniques and string manipulation to optimize character uniqueness tracking...
Implement discounted card purchases
Implement purchase logic for a gem-based card game. There are five gem colors: BLUE, WHITE, GREEN, RED, and YELLOW. Each Card has: - a color represent...
Assign Minimum Workers to Jobs
This question evaluates a candidate's understanding of interval scheduling, resource allocation, and time arithmetic for converting HHMM timestamps to...