Software Engineer Coding & Algorithms Interview Questions
Practice 2,712 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."
Count Overlapping Rectangle Updates on a Grid
Count Overlapping Rectangle Updates on a Grid Implement range_add_counts(n, rectangles). Start with an n x n matrix of zeroes. Each rectangle is repre...
Enumerate 4x4 Tic-Tac-Toe Games
You are given an empty $4 \times 4$ board. Two players, X and O, alternate turns with X moving first. A player wins as soon as they place three of the...
Infection Spread Simulation with Death Threshold
This question evaluates a candidate's ability to implement grid-based simulation with multi-state cellular automaton logic, testing practical applicat...
Generate Function Profiling Events from Stack Samples
Generate Function Profiling Events from Stack Samples You receive timestamped call-stack samples in increasing timestamp order. Each sample is (timest...
Keep At Most K Copies in a Sorted Array
Keep At Most K Copies in a Sorted Array Implement dedupe_sorted(nums, k). Modify the sorted input array in place so each distinct integer appears at m...
Maintain Price Levels For A Single-Symbol Order Book
Review a single-symbol order book implementation prompt with insert, modify, cancel, and price-level lookup callbacks. The interview topic focuses on ...
Find the Longest Subarray with at Most Two Distinct Values
Find the Longest Subarray with at Most Two Distinct Values Given an array of integers, return the length of the longest contiguous subarray containing...
Find Clients Outside Provider Coverage
Problem Implement outside_coverage(providers, clients, max_distance). Each provider has an id, a list of specialties, and a two-dimensional location =...
Implement a Snapshot Set Iterator
Design and implement a set data structure that supports snapshot iteration. The set stores unique values. It must support the following operations: - ...
Perform an External Merge Sort with a Heap
Perform an External Merge Sort with a Heap Sort an integer sequence using the two phases of external merge sort: create sorted runs that fit within a ...
Find Company Tickers Mentioned in a News Headline
Find Company Tickers Mentioned in a News Headline Problem Implement findMentionedTickers(companyNames, tickers, headline). companyNames[i] maps to tic...
Solve a Jigsaw Puzzle
You are given a collection of jigsaw puzzle pieces. Each piece has four edges — top, right, bottom, and left — and a helper function match(edgeA, edge...
Find and Count Maximum-Score Grid Paths
Find the maximum-scoring path from a fixed top-row cell to the last row of a grid using diagonal, downward, and limited two-row jump moves. Return the...
Schedule Weekly Deployment Windows
Schedule Weekly Deployment Windows The source reports a weekly deployment-window scheduler. The absolute-time horizon, cyclic start == end rule, and c...
Consistent Hashing Ring with Virtual Nodes for Shard Rebalancing
This question evaluates a candidate's ability to design and implement a consistent hashing ring with virtual nodes for distributing keys across shards...
Process Calendar Events with Deletion, Pagination, and Overlap Queries
Process Calendar Events with Deletion, Pagination, and Overlap Queries Process operations against an in-memory calendar. Every event has a unique name...
Maximum L1 Distance Between Equal-Length Subarrays
Problem Implement max_l1_subarray_distance(a, b) for two nonempty integer arrays. Choose one nonempty contiguous subarray from a and one nonempty cont...
Implement an Integer Spreadsheet with Formulas
Implement an in-memory integer spreadsheet with literals, additive formulas, nested references, replacement updates, and zero-valued unset cells. Each...
Aggregate Recent Message Events And Active Chats
Prepare for a stateful event aggregation coding prompt over chat events and active chats in a rolling five-minute window. The question is useful for d...
Boolean Expression Tree with Leaf Flips
This question evaluates a candidate's ability to work with tree data structures and apply efficient update propagation techniques. It tests practical ...