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."
Recommend top-K movies from similarity graph
Movie Recommendation: Top K You are building a simple movie recommendation feature. Input - A set of movies 0..(M-1). - An undirected similarity graph...
Sort trade executions into a canonical order
You are building a small component in a trading system that consumes trade execution records from an upstream feed. The records may arrive out of orde...
Implement an LRU cache
Problem: LRU Cache Design and implement a data structure that supports an LRU (Least Recently Used) cache with a fixed capacity. Requirements Implemen...
Solve classic troubleshooting & algorithm tasks
Question System failure troubleshooting: You can only SSH into the machine and the log file is huge. How would you locate the problem quickly? Flip a ...
Compute dasher pay from order events
Dasher naive pay (active-time with overlapping orders) You are given a list of events describing when a delivery driver ("Dasher") accepts and fulfill...
Reverse last two characters with space
Problem Given a non-empty string s with length at least 2, output a new string consisting of the last two characters of s in reverse order, separated ...
Implement an In-Memory File System
Design an in-memory file system that supports file management, search, user ownership, capacity limits, copying, and compression. Each file has a uniq...
Cross-reference logs to flag spam numbers
You are given two data sets: ( 1) a call log containing phone numbers observed in calls and ( 2) a list of user reports where each entry is a phone nu...
Compute Differences Between Catalog Trees
You are given two rooted catalog trees. Each node has a unique string key among its siblings and an associated value. Compare the two trees and return...
Decide transform via one-to-one mapping
You are given two strings s and t of equal length over the lowercase English alphabet. In one step, you may pick any character x and replace all its o...
Implement a min-heap column allocator
You are given an integer k (number of columns) and an array posts of positive integers where posts[i] is the height of the i-th post. All columns star...
Design adjustable ID allocator
Question You manage a fixed global integer ID space [0, 999] (1000 IDs total) and a set of named buckets. Each bucket has a unique name and occupies a...
Implement Luhn-based card validation and inference
Question Implement a set of utilities for credit-card validation and inference using the Luhn checksum algorithm and standard brand patterns. Brand pa...
Check if a word exists in a grid
Given an m×n grid of characters and a string word, determine whether the word can be formed by sequentially adjacent cells (adjacent means horizontall...
Compute org height and minimal CEO promotions
You are given an organization chart with n employees labeled 1..n. Employee 1 is the CEO (root). The reporting relationships are given as two integer ...
Process pod logs with global increments and pop-min
You are given an event log for a system of “pods.” Each event is a pair [status, value]: - status == 1: Add a new pod with initial load = value. - sta...
Solve 12 coding interview problems
Below are multiple independent coding problems. --- Problem 1: Reduce an integer to 0 with \(\pm 2^i\) You are given a positive integer \(n\). In one ...
Min boards to cover roof holes
You are given an m x n binary grid roof representing a roof surface: - roof[i][j] = 1 means the cell is intact. - roof[i][j] = 0 means the cell is a h...
Compute Infection Time in a Grid
You are given an m x n grid where each cell is one of the following: - 0: empty - 1: healthy - 2: infected Every minute, each infected cell spreads th...
Minimize time for two handlers
You are given a sequence of jobs that must be processed in the given order. There are exactly two handlers, and each job must be assigned to one of th...