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 Due Broadcast Sender
You are building a notification system. You are given: - A mapping from company_id to a list of subscriber IDs. - A list of broadcast logs. Each log c...
Implement transaction network queries
Problem You are building a small in-memory library to track pairwise customer transactions and answer connectivity questions about who has transacted ...
Solve three algorithm tasks
Solve the following algorithm tasks and explain your approach, time complexity, and space complexity for each: 1) Fully justify text: Given an array o...
Find k most frequent in linear time
Given an integer array nums and an integer k (1 ≤ k ≤ number of distinct values in nums), return any k values that appear most frequently. Implement a...
Compute shortest path in cyclic graph
Problem: Shortest Path in a Graph With Cycles You are given a directed weighted graph that may contain cycles. - There are n nodes labeled 0..n-1. - Y...
Find earliest time all riders become connected
You are given a time-ordered log of events involving Uber riders. Each event has a timestamp and two rider names. Event types: 1. t X shared-ride-with...
Count permutations with exactly n inversions
You are given two integers m and n. Consider all permutations of the array [1, 2, ..., m] (each number from 1 to m appears exactly once). A permutatio...
Minimize time using elevator then climb stairs
Problem You need to go up n floors (from floor 0 to floor n). You may: 1. Take the elevator first (at most once, only at the start) for k floors, wher...
Implement Snapshot Iterator Without Order Guarantees
Design and implement a mutable collection that supports snapshot iteration. The collection stores unique values and supports the following operations:...
Solve Cache, Window, and Heap Problems
You may be asked to solve multiple algorithmic problems in coding rounds: 1. Frequency-based cache: Implement a cache with get(key) and put(key, value...
Implement String Encryption and Decryption
Implement an encryption service for lowercase words. You are given: - keys: a list of distinct lowercase characters. - codes: a list of strings where ...
Check whether an integer is a power of two
Given a signed 32-bit integer n, return true if n is an exact power of 2, otherwise return false. A power of 2 is a number of the form 2^k where k >= ...
Aggregate expenses by person, trip, and category
Problem You are given a list of expense records. Each record has: - employee_id (string) - trip_id (string) - category (string, e.g., MEAL, HOTEL, TRA...
Compute distinct sums from limited coins
You are given two integer arrays, denom[0..n-1] and count[0..n-1], where denom[i] > 0 is a coin denomination and count[i] >= 0 is the number of availa...
Implement Terminal Tabs and Split Panels
Implement a data structure that models a terminal application with multiple tabs and split panels. Requirements: - A Terminal can create and store mul...
Place items into earliest fitting bins
Place items into earliest fitting bins You are given k items with sizes items[0..k-1] and n bins with initial capacities caps[0..n-1]. Process items i...
Design a CreditTracker with expirations
Design a CreditTracker class with three methods: ( 1) add_credit(start_time, end_time, credit), ( 2) subtract_credit(time, credit), and ( 3) check_cre...
Implement multiple coding round problems
Solve the following coding problems. 1) Bus schedule (next departure) Given: - A sorted list buses[] of bus departure times (minutes since 00:00). - A...
Implement power, reduce string, parse tree, debug maze
1) Implement fast exponentiation (pow) Implement a function pow(x, n) that returns \(x^n\). - Inputs: a floating-point base x and an integer exponent ...
Implement distinct islands and sliding maxima
Implement distinct islands and sliding maxima 1) Given a binary grid where 1 represents land and 0 represents water, count how many distinct island sh...