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."
Implement a CSV dataset join
Implement joinDataSet(fieldName, customerFile, processorFile, skipUnmatched). You are given two datasets represented as List<String>, where: - custome...
Assign Ads to Browser Positions
Implement a function that assigns ads to browser positions for a single user. You are given: - positions: a list of browser position identifiers, such...
Group Photos and Sort Feed Items
You are given a list of feed objects. Each object has: - id: a unique identifier - type: one of Normal, Video, or Photo - score: a numeric ranking sco...
Implement Cache and Rotate Matrix
Solve the following two independent coding tasks. Task 1: Implement an LRU Cache Design a data structure LRUCache that stores integer keys and integer...
Solve Multiple Coding Interview Problems
The interview included the following independent coding tasks. Solve each task, explain edge cases, and analyze time and space complexity. 1. Minimum ...
Find Largest Adjacent Sorted Difference
Given an unsorted array of integers nums, compute the largest difference between two consecutive elements after the array is sorted in ascending order...
Compute total time to finish all courses
Problem You are given n courses labeled 1..n. Each course i takes time[i] units of time to complete. You are also given prerequisite relations prereqs...
Fill rooms with nearest-gate distance
You are given an m×n grid representing a building floor plan: - -1 = wall/blocked cell - 0 = gate - A large positive number (e.g., INF = 2^31-1) = emp...
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...
Return all valid word-break sentences
Given a string s and a dictionary of strings wordDict, insert spaces into s to form a sentence such that every token is in wordDict. Return all possib...
Implement short algorithms on logs, grids, and strings
You are given several independent short coding tasks. For each task, implement the requested function(s). Assume standard library data structures are ...
Minimize operations to reduce integer to zero
You are given a non-negative integer n. In one operation: - If n is even, you may replace n with n / 2. - If n is odd, you may replace n with either n...
Answer common graph, grid, and array tasks
Problem 1: Largest continuous island after filling sea (1D) Humans can convert ocean cells into land by filling them. Input - islands: a 1D array of l...
Compute unique-dasher concurrency with tie-breaking
You are given N delivery assignments, each as (dasherId, startTime, endTime) with 0 <= startTime < endTime. A single dasher may hold multiple overlapp...
Solve Two Array Optimization Problems
This online assessment included two coding problems. Problem 1: Maximize protected city population You are given: - an integer n - an array population...
Implement Recipe Storage CRUD
Implement an in-memory RecipeStore that supports CRUD operations for recipes. Each recipe contains: - id: a string identifier in the form recipe<n> - ...
Implement a single-producer multi-consumer ring buffer
Implement a fixed-capacity ring buffer in C++ for a setting with one producer and multiple consumers. Design a class that stores integers in a preallo...
Filter ads by a single rule
Single-Rule Ad Filter Context When a user watches content, the system needs to filter an ad pool to find ads that match one rule. Implement a lightwei...
Maximize distinct values after unique ± offsets
Problem You are given an integer array a of length n and a non-negative integer k. For each index i, you must choose: - an integer offset d_i such tha...
Implement follow graph with snapshots and recommendations
Design and implement an in-memory “social network” component that supports following/unfollowing, point-in-time (snapshot) queries, and a simple recom...