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 listed algorithm problems
This set of problems evaluates algorithmic problem-solving skills across selection and order-statistics, graph algorithms and traversals, connected-co...
Find k customers with least revenue
Problem You are given a list of purchase events. Each event contains: - customer_id (string or int) - amount (integer, may be 0; assume non-negative u...
Parse logs and generate NFT attributes
This question evaluates parsing and log-processing skills alongside combinatorics and weighted-sampling competency, covering extraction and time-based...
Implement text wrapping, waitlist, and intervals
This question evaluates skills in string parsing and word-wrapping logic, data-structure design for FIFO queue management and deletions, and interval ...
Compute decayed power levels in a graph
This question evaluates knowledge of graph algorithms and distance-based propagation, testing concepts such as shortest-path distance computation, mul...
Implement ordering and undo executor
The interview included two coding tasks: 1. Dependency ordering: Given a set of tasks and their dependency relationships, return a valid execution ord...
Choose root to minimize edge reversals
This question evaluates understanding of directed versus undirected graph representations, tree rooting, and optimization of edge orientations, testin...
Count Distinct Values in a Sorted Array When K Is Small
Count Distinct Values in a Sorted Array When K Is Small Given an integer array sorted in nondecreasing order, return the number of distinct values. Le...
Parse a nested list from a string
This question evaluates proficiency in parsing nested data structures, string processing, hierarchical representation construction, and analysis of al...
Schedule batched register operations optimally
Problem You are given a text file that describes batches of register operations (reads and writes) on integer-indexed registers. Your task is to sched...
Fairly Distribute Money With Limits
This question tests practical algorithm design around greedy distribution with per-element constraints and iterative redistribution. It evaluates a ca...
Design a single- and multi-threaded web crawler
Web Crawler (single-threaded, then multi-threaded) You are given: - A starting URL startUrl (e.g., "http://news.example.com/a/index.html"). - An inter...
Implement a Contiguous Memory Manager
This question evaluates competence in designing efficient data structures and algorithms for interval management, contiguous allocation and deallocati...
Scale Ingredient Quantities
Scale Ingredient Quantities Each ingredient is a string in the exact format "<quantity> <unit> <name>". Multiply every quantity by servings and return...
Interleave Three Equal-Length Strings
Interleave Three Equal-Length Strings Given three strings of equal length, build a result by taking the character at index 0 from each string, then th...
Minimize Travel Assignment Cost
This question evaluates algorithmic problem-solving in combinatorial optimization and dynamic programming, testing competency with cost-minimization, ...
Implement a Rollback Key-Value Store
This question evaluates competency in designing data structures and state-management mechanisms, focusing on rollback/undo semantics, versioning, and ...

Implement a Dependency-Aware Task Scheduler
Implement a TaskManager class with two methods: - AddTasks(tasks): add one or more tasks into the system. - ConsumeTask(): return and remove the execu...
Calculate Transaction Fees
You are building a payment processor. Each transaction has an amount in cents, a payment type, and a payment status. The platform charges a percentage...
Design a Versioned Social Follow Graph with Friend Recommendations
Design a Versioned Social Follow Graph with Friend Recommendations Build an in-memory service that maintains a directed follow graph between users and...