Software Engineer Coding & Algorithms Interview Questions
Practice 2,306 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."
Return Top K Open Businesses
You are given a list of business candidates. Each candidate has at least the following fields: - score: a numeric relevance score - distance: a numeri...
Find an Exit in a URL Maze
You are given a starting URL for a web-based maze. Each URL represents one room in the maze. Your task is to write a program that discovers whether th...
Solve Matrix Traversal and Pair Sum
You will solve two independent coding problems. Problem 1: Traverse a Matrix in Spiral Order Given an m x n matrix of integers, return all elements in...
Find linked user records by similarity
You are given a list of user records. Each record has the following fields: - id (integer, unique) - name (string) - email (string) - company (string)...
Compute Balances and Minimize Settlements
You are building a daily ledger service. A transaction record has three fields: timestamp, user_id, and delta_amount. delta_amount can be positive or ...

Implement Dependency-Aware Task Scheduler
Design and implement a task scheduler that supports adding tasks and consuming executable tasks in deadline order. Each task has: - taskId: a unique i...
Maximize block fee with transaction selection
You are given N transactions. Each transaction has: - id (unique identifier) - size (positive integer) - fee (positive integer) You are building a blo...
Merge overlapping corrections
Implement correctionMerge(corrections). You are given a list of text-correction spans. Each correction applies to an inclusive interval [start, end] a...
Compute distance to nearest taxi in grid
You are given an R x C grid representing a city map. - grid[r][c] = 1 means there is a taxi located at cell (r, c). - grid[r][c] = 0 means the cell is...
Reconstruct route from unordered travel tickets
You are given a list of directed travel tickets, each represented as a pair [from, to] (city names are strings), e.g. [["A","B"],["B","C"], ...]. The ...
Implement an in-memory SQL-like table
Implement a simplified in-memory SQL-like database for a single table. You should support the following operations on a table with a fixed schema (a l...
Solve array duplicate flags and binary swaps
Problem 1: Flag duplicates on the left and right You are given an integer array nums of length n. For each index i, determine: 1. Left-duplicate: whet...
Design a satellite propagation simulator
Question Implement a SatelliteNetwork class that simulates message propagation over an undirected satellite graph. The class consumes a stream of inst...
Implement sparse matrix addition and multiplication
Implement sparse-matrix operations with explicit error handling. Sparse matrix A matrix A has dimensions r x c and is sparse, meaning most entries are...
Solve Quickselect, Tree Distance, and Prefix Substrings
You are given three independent coding tasks. 1. Implement Quickselect - Given an unsorted integer array nums and an integer k, return the k-th sma...
Select transactions to maximize fees under size
Problem: Max-fee block assembly You are given N transactions. Each transaction has: - id (unique) - size (positive integer) - fee (non-negative intege...
Predict most likely next word from training data
You are given tokenized training data consisting of multiple sentences (each sentence is a list of words). Build a lightweight model/data structure th...
Flatten a nested JSON object
Problem You are given a JSON-like value representing an object that may contain: - Objects / dictionaries (string keys) - Arrays / lists - Primitive v...
Maximize Value Under a Budget
You are given an array of items. Each item has a price and a value, and you are given a total budget. Each item can be purchased at most once. Impleme...
Merge overlapping time intervals
Problem: Merge Intervals You are given an array of intervals intervals, where each interval is a pair [start, end] with start <= end. Merge all overla...