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."
Determine Reporting Relationships
Build an in-memory organization model that supports three operations on employee IDs: 1. add_manager(a, b): employee a is the direct manager of employ...
Find Kth Largest and Tree Ancestors
In a technical phone interview, the candidate was asked two coding problems in the same round: 1. K-th largest element in an array Given an unsor...
Find Maximum Rectangle in Bar Chart
Given an array heights of n non-negative integers, where each value represents the height of a vertical bar in a bar chart and every bar has width 1, ...
Count connected islands using Union-Find
You are given an m x n grid of characters where '1' represents land and '0' represents water. An island is a group of horizontally or vertically adjac...
Fetch paginated data from two APIs
Write a function get_enriched_records(api_a_url, api_b_url). api_a_url returns paginated JSON in the form: `json { "data": [ {"id": 1, "ref_id":...
Solve classic coding interview problems
These problems evaluate algorithmic problem-solving skills including dynamic programming and combinatorics for the egg-dropping scenario, array manipu...
Count Similar Photo Groups
You are given n photos labeled 0 to n - 1 and an n x n binary matrix isSimilar. - isSimilar[i][j] = 1 means photo i and photo j are directly similar. ...
Implement an Alert Execution Engine
You are given an alert client API that provides alert configurations, metric query execution, and notification methods. Implement an alert execution e...
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...
Maximize coins collected by tokens jumping +3
You are given a single-player board game represented by a string board of length N (1 ≤ N ≤ 100). Each character is one of: - '.': empty cell - 'T': a...
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...
Design Tic-Tac-Toe With K Players
Design and implement a Tic-Tac-Toe game engine. You are given: - k players, each with a unique player ID or mark. - An n x n board, initially empty. -...
Implement sliding-window timestamped average
Problem Implement a class that maintains a time-based sliding window of records and can return the average score within the current window. Requiremen...
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...
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...
Design O(1) insert/delete and frequency-weighted random
Problem Design a data structure that supports the following operations in average \(O(1)\) time: 1. add(x) -> bool - Inserts value x into the colle...
Parse logs and count error codes
This question evaluates parsing and sanitizing structured text, extracting specific fields, and performing frequency aggregation of identifiers such a...
Maximize protected population and bitwise AND
This paired problem evaluates array manipulation and resource-allocation reasoning for maximizing covered population in a constrained-movement scenari...
Minimize run-length encoded length with deletions
This question evaluates proficiency in string manipulation, run-length encoding concepts, and dynamic programming-based optimization under deletion co...
Compute max profit from one stock trade
Given an integer array prices where prices[i] is the stock price on day i, compute the maximum profit you can achieve by choosing at most one day to b...