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."
Design out-of-order windowed stream processor
Question Design an event processor for an unbounded, infinite stream of events. Each event has the fields id, timestamp, payload (a string), and check...
Validate password strength and repair
Given a password policy—length between 8 and 20 characters; must include at least one lowercase letter, one uppercase letter, and one digit; and must ...
Return the k-th row of Pascal-like triangle
Problem Given an integer rowIndex (0-indexed), return the rowIndex-th row of Pascal’s triangle. Pascal’s triangle is defined as: - Row 0 is [1] - Each...
Implement stream line reader and settle balances
Part 1: Streaming line reader from chunked source You are given an existing class ChunkSource with a method nextChunk() that returns the next piece of...
Find a Bounded Subarray and Largest Square
Implement the following two independent coding tasks. Task A: Longest bounded-range subarray Given an integer array nums and an integer limit, return ...
Implement Longest-Match Text Replacement
You are given a text string and a dictionary of replacement entries. Each dictionary entry has the form token:id, where token is a string pattern and ...
Implement IPv4 iterators and CIDR expansion
Problem: IPv4 Iterators and CIDR Expansion You are implementing utilities to iterate over IPv4 addresses. An IPv4 address is in dotted-decimal form: A...
Implement four string-processing functions
You are given four independent string/list problems. Implement each as a separate function. 1) Filter strings by shared characters Input: - words: a l...
Maximize Boundary-Difference Subarray Sum
Given an integer array nums and an integer k, find the maximum possible sum of a non-empty contiguous subarray whose first and last elements differ by...
Count Trips From Vehicle Logs
You are given a text log of vehicle events on a road system. Each log record contains: - license_plate: a string identifying a vehicle - event_type: o...
Compute Nearest Destination Distances
You are given an m x n grid representing a city map. Each cell contains one of the following characters: - D: a destination - X: an obstacle - .: an o...
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...
Implement compile-time function type verification
Implement a C++20 compile-time utility to verify whether a callable matches a target function type. Requirements: create a primary template is_callabl...
Evaluate Symbol Expressions
You are given a map from symbol names to arithmetic expressions. Each expression may contain integer constants, other symbol names, parentheses, and t...
Compute minimum meeting rooms on circular day
Problem You are given a list of meetings scheduled within a 24-hour day. Time is cyclic: after 23:59 the next minute is 00:00. Each meeting is represe...
Find minimum racks for 2D bin packing
You are given N machines. Machine i requires two types of resources: (x_i, y_i). Each rack has capacity (A, B) for the two resources, and a machine mu...
Implement SQL Table and DNA Ordering
Two independent coding exercises were asked. Solve both. Problem A: CSV-backed in-memory table Build a tiny in-memory relational table initialized fro...
Find Shortest Queue with Few Calls
You are given a list of queues of integers. For each queue, the only available operations are isEmpty() and poll(), where poll() removes and returns t...
Implement Interval Insert and Dedup
This interview round contained two coding problems: 1. Insert and merge intervals. You are given a list of non-overlapping intervals sorted by start t...
Implement a Cloud Storage Service
Implement an in-memory cloud storage system. Build the class incrementally; later levels must preserve all behavior from earlier levels. File names ar...