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 IP Address Arithmetic
Implement an IP address utility library. Support the following operations: 1. Parse an IPv4 address in dotted-decimal form, such as 192.168.0.1. 2. Gi...
Minimum Drone Delivery Time on a Ring of Hubs
A fleet operator runs a single delivery drone over a set of m hubs arranged in a circle (a ring). The hubs are numbered 1 through m in clockwise order...
Content Safety Filter
Content Safety Filter You are building a content-safety component for a messaging platform. The system receives a stream of chat messages and must dro...
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 Connect Four with bottom push-up
Implement a Connect Four variant with bottom push-up. In standard Connect Four a dropped disc falls to the lowest empty cell of a column. In this vari...
Maximize Throughput and Count Trigger Components
You are given two independent coding problems. Problem 1: Maximize Pipeline Throughput A production pipeline has n services connected in series. Servi...
Calculate Driver Payments
Build a payout calculator for a delivery platform. You are given: - A list of delivery records. Each record has delivery_id, driver_id, start_time, en...
Expand Nested Repetition Expressions
Implement a function that expands a valid encoded string containing nested parenthesized repetition expressions. Rules: - Ordinary characters are appe...
Solve Flower Placement and Directory Deletion
You will solve two independent coding tasks. Task 1: Place Flowers on a Grid Given an N x N grid: - 'H' represents a house. - '0' represents an empty ...
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: - ...
Implement a Database Connection Pool
Implement a simple database connection pool. You are given a mock database client with a function such as db.query(connection, sql) or an equivalent s...
Solve Balanced Permutations and Tree Reversals
You have 90 minutes to solve the following two independent coding problems. Problem 1: Balanced Prefix Values in a Permutation You are given a permuta...
Implement a random fixed-size load balancer
Problem: Build a simple load balancer Implement a minimal in-memory load balancer that routes each incoming request to one backend node chosen uniform...
Find Top Errors in Time Window
Implement a function that analyzes request-response logs stored as JSON records. Each record contains a timestamp, a response status, and optionally a...
Simulate an exchange and participation-rate trading
Implement a simplified trading simulation in three parts. Part 1 — Process market data / exchange interaction (order book) Design a minimal limit-orde...
Compare Complete and Partial Poker Hands
Implement a simplified poker-hand comparator. You are given two poker hands. A complete hand contains exactly 5 cards. Each card has a rank and, if ne...
Minimize Branch Merge Conflicts
You are given several feature branches that must all be merged into the main branch. Each branch contains a sequence of commits, and each commit modif...
Implement a thread-safe money transfer
Problem: Implement a concurrent-safe transfer function You are given an in-memory store of bank accounts: - Each account has an accountId and a balanc...
Maximize Boxes Stored Through One Entrance
You are given two integer arrays: - boxes[i]: the height of the i-th box. - rooms[j]: the height limit of the j-th room in a linear warehouse. The war...
Find Earliest Column With One
You are given access to a binary matrix through an API rather than direct storage. The matrix has m rows and n columns. Each row is sorted in nondecre...