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 a crypto order management system
You are building an in-memory crypto order management system. You must parse commands from standard input and print outputs for query commands. Order ...
Reverse last two characters with space
This question evaluates basic string manipulation and character indexing skills, including handling of edge cases when treating input as a raw charact...
Maximize minimum after K decrements
You are given an integer array A of length N and an integer K. You must perform exactly K operations. In each operation, choose any index i and do A[i...
Implement follow graph with snapshots
This question evaluates a candidate's ability to design efficient persistent data structures and versioned state management for time-travel queries in...
Find accessible devices via nested memberships
Problem You are given an access model with nested groups: - A group can contain users and also contain other groups (subgroups). - A user can own or b...
Design hierarchical path store with create/set/get/remove
Design a hierarchical key-value path store supporting four operations on UNIX-style absolute paths (e.g., "/a/b"). Implement: 1) create(path, value): ...
Compute max events in any 60-second window
Design a function that, given a non-decreasing list of integer timestamps (seconds), returns the maximum number of events occurring within any contigu...
Guide a mouse to find cheese with APIs
This question evaluates the ability to reason about graph exploration and stateful API interaction in an unknown 2D grid, assessing competencies in se...
Produce a valid deployment order
You are given N services and a list of dependency pairs (A, B) meaning service B must be deployed before service A. Compute any valid deployment order...
Implement crawler and file deduplication
This question evaluates competencies in concurrent programming, web crawling and graph traversal, thread safety, rate limiting, I/O-efficient file ded...
Solve set equality and ad log top‑K
Problem Set (Coding) 1) Check whether two sets are equal You are given two integer arrays A and B that represent sets, except they may contain duplica...
Find users with at least one valid session
You are given: - A list of log entries logs, where each entry is a string in the format: ` "userId action timestamp" ` - userId is a non...
Solve Topological Sort and Anagram Indices
1) Given a directed graph (n vertices, m edges), return a topological ordering if one exists. If the graph contains a cycle, detect it and explain how...
Implement a sliding-window rate limiter
Problem Design and implement an in-memory rate limiter using a sliding time window. You are given a stream of requests. Each request has: - key (e.g.,...
Implement XML tokenizer and parser with operations
Implement XML tokenizer and parser with operations You are given either (a) a raw XML-like string such as <catalog><book><author>Gambardella, Matthew<...
Explain Python internals and practices
Explain Python internals and practices Answer the following Python deep-dive questions: - Explain the Global Interpreter Lock (GIL) and its impact on ...
Compute Balances and Minimize Settlements
This question evaluates transactional data aggregation and net-balance computation skills alongside combinatorial optimization for minimizing settleme...
Build a Flexible Expense Rules Engine
This question evaluates designing extensible rule engines, predicate composition, data modeling for expense- and trip-level aggregation, and reasoning...
Implement in-memory KV store with serialization
Implement an in-memory key-value store in Python that supports setting and retrieving values and can serialize and deserialize the entire store. Defin...
Count Referral Descendants
You are building a referral analytics feature. Each referral relationship is represented as a directed pair (referrer, referredUser), meaning referrer...