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."
Vertical Order Traversal of a Binary Tree
Vertical Order Traversal of a Binary Tree You are given the root of a binary tree. Return the vertical order traversal of its nodes' values — that is,...
Convert a Roman Numeral to an Integer
Convert a Roman Numeral to an Integer Roman numerals are written with seven symbols, each with a fixed integer value: | Symbol | Value | |--------|---...
Count the Ways to Split a Digit String into Primes
You are given a string s consisting of decimal digits ('0'–'9') that represents a positive integer. Count the number of ways to split s into a sequenc...
Implement A* Maze Search
Implement maze pathfinding in C++. You are given an m x n grid where '.' is an open cell, '#' is a wall, S is the start, and T is the target. You may ...
Maximize Distinct Values with Cross-Array Swaps
Maximize Distinct Values with Cross-Array Swaps Given arrays a and b of equal length and an integer k, perform at most k swaps. Each swap chooses one ...
Implement a Banking System
Design and implement an in-memory banking system. All operations are processed in non-decreasing timestamp order. Account identifiers are strings. Mon...
Maximize Chef Assignment Profit
You are given three integer arrays: - chefSkill[i]: the skill level of the i-th chef. - dishDifficulty[j]: the difficulty level required to cook the j...
Compute total wages and partial-hour payments
You are given a list of workers. Each worker has: - id (string) - hourly_rate (non-negative number) - one work shift for a given day: start_time, end_...
Implement Persistent Memoization LRU Cache
This question evaluates knowledge of memoization, LRU cache semantics, deterministic cache-key construction from positional and keyword arguments, JSO...

Implement a Task Processor
This question evaluates understanding of priority-based scheduling and dependency resolution, focusing on data structures and graph-ordering concepts ...
Implement a Level-Aware Expiring Inventory Store
Implement an inventory store with levels, weights, timestamps, and expiration. store adds an item. retrieve(timestamp) returns and removes the highest...
Build and Validate a Binary Tree from Parent-Child Pairs
Build and Validate a Binary Tree from Parent-Child Pairs You are given a single input string that is supposed to describe a binary tree as a sequence ...
Implement Prefix Match Filter
Design a data structure that stores a collection of prefix strings. Then, given a list of input strings, return every string that begins with at least...
Solve BST and Grid Query Problems
This question evaluates understanding of binary search tree order-statistics and grid reachability under threshold constraints, testing competencies i...
Solve 15 common Apple coding questions
The post summarizes high-frequency coding problems reported for Apple Software Engineer interviews. Practice the following algorithm and data-structur...
Implement spreadsheet undo/redo operations
Problem Design a data structure that simulates Undo/Redo for a simplified spreadsheet editor. A user performs a sequence of operations on cells. Each ...
Process exchange prints, volume checks, and client orders
This question evaluates a candidate's ability to implement real-time stream processing, sliding-window aggregation for time-based volume calculations,...
Design server allocation for multi-type nodes
Design a service to manage a large pool (about 100, 000) of server nodes. Each node can satisfy multiple instance types; clients call getServer(reqNum...
Design a menu manager with enums
Design and implement a console-based restaurant menu management program. Requirements: ( 1) There are exactly three fixed item categories represented ...
Design out-of-order windowed stream processor
Design out-of-order windowed stream processor Design an event processor for an unbounded, infinite stream of events. Each event has the fields id, tim...