Software Engineer Coding & Algorithms Interview Questions
Practice 2,743 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 two interview coding problems
The interview included two coding problems. Problem 1: Find valid robot locations in a grid You are given a 2D grid containing empty cells and obstacl...
Implement a Timestamped Banking System
This question evaluates the ability to design and implement an in-memory, time-ordered stateful system handling event scheduling, transactional update...
Infer an Unknown Alphabet Order
You are given a list of words that is already sorted according to an unknown alphabet. Derive one valid ordering of the characters in that alphabet. R...
Find Fastest Commute Mode
This question evaluates graph traversal and shortest-path reasoning on a constrained 2D grid, including modeling movement rules per transportation mod...
Solve power jumps and graph tour
This pair of problems evaluates algorithmic problem-solving in number representation and combinatorial graph optimization, focusing on competencies in...
Design an In-Memory Database
Implement a simple in-memory database with a flexible, schema-less record model. Requirements: - Each record is a mapping from column_name to value. -...
Solve Balanced Permutations and Tree Reversals
You have 90 minutes to solve the following two independent coding problems. Problem 1: Balanced Prefix Values in a Permutation You are given a permuta...
Implement a Versioned Key-Value File Store
Implement an in-memory file store that supports progressive requirements. Operations include set(key, value), get(key), delete(key), scan(), scan_pref...
Implement a Snowflake Query Client
Build a lightweight query client for a Snowflake-like data warehouse. Implement a QueryClient that can: 1. Connect to the warehouse using configuratio...
Find Business Degrees of Separation
Implement a feature for a small-business network. QuickBooks has data showing business relationships, such as one business regularly buying goods or s...
Solve substring and worker assignment
The interview included two algorithm problems: 1. Shortest covering substring: Given two strings s and t, return the shortest contiguous substring of ...
Validate bracket sequence
Given a string s containing only the characters (, ), [, ], {, and }, determine whether the brackets are properly matched. A string is valid if: - Eve...
Design a Randomized Multiset
Implement a data structure for integers that allows duplicate values and supports the following operations in expected O(1) time: - insert(val): Add o...
Solve Knight and Reversal Problems
The online assessment contained two coding problems: 1. Generalized knight shortest path: Given an integer n, consider an n x n chessboard with coordi...
Validate Bracket Sequence
This question evaluates proficiency with stack data structures, string parsing and matching logic, and the ability to reason about algorithmic time an...
Merge Sorted Arrays In Place
You are given two non-decreasing integer arrays. - A has length m + n. - The first m elements of A are valid sorted numbers. - The last n elements of ...
Implement Recipe Storage CRUD
Implement an in-memory RecipeStore that supports CRUD operations for recipes. Each recipe contains: - id: a string identifier in the form recipe<n> - ...
Build a Fuzzy Keyword Index
This question evaluates string-processing, text-indexing, approximate string-matching, and data-structure design skills for supporting many repeated q...
Reverse Words While Preserving Spaces
Implement a C++ function that reverses the order of words in a string. Assume a word is any maximal sequence of non-space characters, and the input co...
Find and Merge Camera Alert Intervals
You are given surveillance camera readings as time-series data. Each reading is a pair (timestamp, value), sorted by timestamp. A camera is considered...