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."
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...
Validate a bracket string
This question evaluates a candidate's ability to reason about paired-token matching and nested structure correctness in strings, measuring skills in p...
Build an Account Transfer Ledger
This question evaluates the ability to implement transaction processing, state management, validation of transfers (including rejects and platform len...
Group words that map to same phone digits
Problem On a classic phone keypad (T9), letters map to digits: - 2: ABC, 3: DEF, 4: GHI, 5: JKL, - 6: MNO, 7: PQRS, 8: TUV, 9: WXYZ Given a list of lo...
Highest Salary Using Java Streams
This question tests a software engineer's practical proficiency with the Java Stream API, specifically the ability to perform aggregate operations on ...
Generate Per-Position Guess Feedback
This question evaluates string-processing skills, array manipulation, and handling of duplicate character counts to produce per-position feedback. It ...
Implement custom iterators and interfaces
Implement custom iterators and interfaces Define a minimal Iterator interface (e.g., hasNext(), next()) for integers without using IDE-generated scaff...
Implement an O(1) LRU Cache
Implement run_lru(capacity, operations) to model a least-recently-used cache with integer keys and values. Each operation is a three-integer row: - [0...
Implement a Formula Spreadsheet
Design and implement a small in-memory spreadsheet. The spreadsheet must support cell labels such as A1 and B10, where a label consists of uppercase l...
Parse code into operation triads IR
Problem: Operation-Triads Parsing (Mini Language) You are given a small, line-based programming language consisting of assignment statements and non-n...
Implement Interval Insert and Dedup
This question evaluates skills in array and interval data-structure manipulation, in-place modification under space constraints, and general algorithm...
Decode a JWT string without libraries
This question evaluates understanding of JWT structure, Base64URL encoding, string manipulation, and JSON parsing as applied to decoding token compone...
Implement sequential and parallel URL requests
This question evaluates proficiency in HTTP networking, asynchronous and parallel programming (promises/futures), deduplication and order preservation...
Produce valid student lineup from parent array
This question evaluates understanding of rooted tree hierarchies, parent-before-child ordering constraints, and lexicographic minimality when construc...
Implement a thread-safe money transfer
Problem: Implement a concurrent-safe transfer function You are given an in-memory store of bank accounts: - Each account has an accountId and a balanc...
Maximum-Length Unique-Character Subset
This question evaluates a candidate's ability to combine bitmasking with backtracking or subset enumeration to maximize a constraint over combinations...
Same-Domain Web Crawl (BFS)
This question evaluates a candidate's ability to implement graph traversal using breadth-first search while applying a domain-matching filter and dedu...
Path Resolution with Symbolic Links
This question evaluates a candidate's ability to implement filesystem-style path resolution, including handling relative and absolute paths, dot compo...
In-Memory Key-Value Database with Nested Transactions
This question evaluates a candidate's ability to design a data structure that layers transactional state over a committed base, testing skills in nest...