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."
Compute pipeline order from dependencies
You are given a set of pipelines and a list of directed dependency pairs (A, B) meaning pipeline A depends on pipeline B and therefore B must run befo...
Detect cycle in a directed graph
Given a directed graph represented by an adjacency list with n vertices and m edges, determine whether the graph contains a cycle. Describe and implem...
Minimize Increments to Equalize Path Costs
You are given a perfect binary tree with n nodes, labeled from 1 to n in level-order. For any non-leaf node i, its left child is 2 i and its right ch...
Implement frequency + distance top‑K queries
You will implement solutions for two coding interview questions. Question 1: Return the top‑K points by frequency (with distance tie‑break) You are gi...
Compute max reachable cells per threshold
You are given: - An m x n integer matrix terrain. - An integer array limits of length k. For each query value L = limits[i], you start at the top-left...
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...
Solve common string/tree/grid interview tasks
Problem Set (solve all in one interview) 1) Parse an integer from a string ("atoi"-style) Implement a function: - parseInt(s: string) -> int Given a s...
Group duplicate files by content
Problem You are given a list of files in a filesystem. Each file has: - a full path (string) - a file size in bytes (integer) - file contents (concept...
Solve common string/DP/stack problems
You are given four independent coding tasks. For each task, describe your approach and analyze time and space complexity. Task 1: Longest substring wi...
Stream output until stop token appears
You are implementing a simplified streaming conversational AI output filter. Text arrives in chunks (strings) in order. There is a special stop token ...
Compute board-game score from regions
You are given a 2D board for a board game. Each cell is encoded like G1 or W0: - The first character is the terrain/area type (e.g., G, W, S). - The d...
Check pivot after removing one element
You are given an integer array nums (values may repeat and may be negative). You must remove exactly one element (remove one index). The remaining ele...
Measure 45 minutes with two ropes
You have two ropes. Each rope takes exactly 60 minutes to burn completely, but each rope burns at a non-uniform rate (some parts burn faster than othe...
Maximize protected population and bitwise AND
You are given two independent coding problems. Problem 1: Maximize protected population after moving units There are n cities in a line (indexed 1..n)...
Min deletions to avoid overlap in first k
You are given two integer arrays list1 and list2 and an integer k. You may delete elements from list2 (deletions can be at any positions). The relativ...
Compute BBO and NBBO from order data
You are given a list data of order records. Each record is a 4-tuple: ` (exchange_id, price, quantity, order_type) ` - exchange_id: string/int identif...
Implement bitmap-based block allocator
Problem 1: Bitmap-based block allocator (OOD/coding) You are implementing a simple block allocator backed by a bitmap. - There are M blocks, indexed 0...
Parallelize chunked file download and verify integrity
You are implementing a simplified s3 sync-style download for a large remote object. A file is stored remotely as N fixed-size chunks (except possibly ...
Implement BFS-based maze solver
Maze Printing and BFS Solver You are given a 2D grid representing a maze. Each cell of the grid is one of: - '#' – wall (cannot be passed) - '.' – emp...
Validate a bracket string
Problem Given a string s consisting only of the characters (, ), [, ], {, }, determine whether the string is valid. A string is valid if: 1. Every ope...