Software Engineer Coding & Algorithms Interview Questions
Practice 2,120 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 Random Connectivity and Grid Routing
This entry contains two independent coding problems. Problem 1: Uniformly connect node groups You are given k non-empty, disjoint groups of unique nod...
Calculate Transaction Fees
You are building a payment processor. Each transaction has an amount in cents, a payment type, and a payment status. The platform charges a percentage...

Implement a Task Processor
Design a task processor that supports two operations: - AddTask(task): add a new task. - ConsumeTask(): remove and return the id of the next task to e...
Implement a Transactional Key-Value Store
Design an in-memory key-value store that supports transactions. Required operations: - set(key, value): assign or overwrite the value for a key. - get...
Implement Document Predicate APIs
Design a simple document service that stores text documents identified by filename. Implement these APIs: - InsertDoc(filename, content): store or ove...
Implement Tail and Find Monster Cost
This entry contains two coding tasks from the same interview category. Task A: Implement a file tail operation Implement a function tail(filePath, n) ...
Implement Store Autocomplete
You are given a list of store names, for example: `text ["McDonald's", "KFC", "Burger king", "Bites", "Biscuit shop"] ` Implement an autoComplete(s) m...
Solve Four Online Assessment Problems
Complete the following four independent coding tasks. For each task, write a function that returns the requested result. 1. Find the best value index ...
Implement topological sort and tree boundary traversal
You are given two separate coding tasks. Problem A — Order courses with prerequisites You have n courses labeled 0..n-1 and a list of prerequisite pai...
Implement Game Physics and Block Mining
You are given two independent coding tasks from the same interview category. Solve both. Task A: Flappy-Bird-Style Jump Boundary Function Implement a ...
Implement Caches, Undo, and Traversal
Solve the following coding tasks. For each task, define clean APIs, implement the core logic, and be prepared to explain time and space complexity. Ta...
Solve Subarray Sum and Local Minimum
Two coding problems were reported in the same phone-screen round: 1. Count target-sum subarrays. Given an integer array nums and an integer k, return ...
Minimize deaths in spreading plant infection
You are given an m x n grid representing a garden: - 0: empty cell - 1: healthy plant - 2: infected plant The garden evolves day by day in the followi...
Implement lexicographically smallest Two Sum
You are given an unsorted integer array nums and an integer target. Return the indices [i, j] (0-based) such that i < j and nums[i] + nums[j] == targe...
Implement a traffic-light UI with JS
Frontend Coding: Traffic Light Build a simple traffic light component using HTML + CSS + JavaScript. Requirements - Render a vertical traffic light wi...
Solve Morse and Network Access Tasks
Solve the following two independent coding problems. Problem 1: Convert Between Text and Morse Code You are given the standard Morse-code mapping for ...
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...
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...
Determine Whether Queries Can Zero Array
You are given an integer array nums of length n and a list of range operations queries, where each query is of the form [l, r, val]. Process the queri...
Compute Courier Delivery Pay
A delivery platform has a service that can return all orders delivered by a courier. You are given: - courierId: the courier's identifier. - ratePerMi...