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."
Sum Multiples of Three, Five, or Seven
Sum Multiples of Three, Five, or Seven Implement sum_multiples(limit). Return the sum of all distinct positive integers strictly less than limit that ...
Count Pairs of Cyclically Equivalent Integers
Count Pairs of Cyclically Equivalent Integers Two non-negative integers are cyclically equivalent when their standard decimal strings have the same le...
Minimize Replacements So Equal Product Values Are Contiguous
Minimize Replacements So Equal Product Values Are Contiguous You are given the quality value of each product in a line. In one operation, choose two d...
Count Completed Jobs in a Serial Single-Worker Pipeline
Count Completed Jobs in a Serial Single-Worker Pipeline An automation pipeline contains stages that execute in order. Each stage is represented as [nu...
Schedule Priority Jobs with Cooldowns
Schedule Priority Jobs with Cooldowns Implement a scheduler for recurring jobs: `text addJob(job_id, priority, cooldown) -> bool getJob() -> job_id or...
Build a Constant-Time Snapshot Set Iterator
Build a Constant-Time Snapshot Set Iterator Design SnapshotSet, a set of integers whose iterators observe an immutable logical snapshot without copyin...
Determine Whether an Undirected Graph Is Two-Colorable
Determine Whether an Undirected Graph Is Two-Colorable Given an undirected graph with nodes labeled 0 through n - 1, determine whether every node can ...
Report Tree Levels and Balanced Subtrees
Implement describe_balanced_nodes(values) for a binary tree represented as a zero-based heap array. For an existing node at index i, its children are ...
Simulate Constant-Time Random Courier Selection
Simulate Constant-Time Random Courier Selection Problem Implement simulate_random_picker(operations, random_values). The picker maintains a changing s...
Merge Overlapping Closed Intervals
Implement merge_intervals(intervals) for closed intervals. Return disjoint closed intervals that cover exactly the same points, sorted by start. Inter...
Maximal Square and Longest Increasing Subsequence
Problem Implement analyze(matrix, nums) and return [max_square_area, lis_length]. Part A: Maximal Square matrix is a rectangular grid containing only ...
Minimize Fuel Cost Across Cities
Minimize Fuel Cost Across Cities Problem Hackerland has g_nodes cities numbered from 1 through g_nodes and bidirectional roads. Road i connects g_from...
Evaluate Dependent Variable Assignments
Evaluate Dependent Variable Assignments Problem Implement evaluate_assignments(expressions). Each input string assigns one variable to a sum of intege...
Schedule GPU Pods and Drain a Node
Problem Implement schedule_gpu_nodes(nodes, request_gpus, delete_name). Each node is {name, gpus, running_pods} and each pod is {name, required_gpus}....
Merge Keyed N-Ary Trees
Merge Keyed N-Ary Trees An N-ary tree node contains a unique string key among its siblings and a list of children. Implement merge_trees(a, b) for two...
Minimum Cars for Rental Requests
Minimum Cars for Rental Requests You receive rental requests, each with a unique request identifier, pickup time, and return time. Every request must ...
Search a Pattern Across the Leaf Text of a Binary Tree
Search for a pattern across the left-to-right concatenation of binary-tree leaf strings, including matches that cross leaf boundaries. This algorithm ...
Maximize Valid Trains from Shared Equipment
You have a pool of locomotives and railcars. Partition any subset of them into valid trains while using each locomotive and railcar at most once. A va...
Calculate Ordered Job Makespan Across Parallel Workers
Calculate Ordered Job Makespan Across Parallel Workers A single stage has jobs with different durations and a fixed number of identical workers. Jobs ...
Find the Most Frequently Used Meeting Room
Find the Most Frequently Used Meeting Room Problem Implement mostBookedRoom(roomCount, meetings) -> roomId. Rooms are numbered 0 through roomCount - 1...