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."
Deep Equality of Two Records
This coding question tests a software engineer's ability to implement recursive structural comparison across nested, heterogeneous data types. It eval...
Implement a Cloud Storage Service
Implement an in-memory cloud storage system. Build the class incrementally; later levels must preserve all behavior from earlier levels. File names ar...
Implement menu parser and serializer
Menu parser and serializer You are given a restaurant menu stored as plain text, where indentation represents a hierarchy of categories and items. Imp...
Debug and Explain Fixes
Given a small codebase with failing unit tests, identify the root causes of the failures, fix the bugs, and explain the defects you found. Add minimal...
Choose optimal guesses for green-only Wordle
This question evaluates probabilistic reasoning, expected-value optimization, information partitioning, and algorithmic efficiency in selecting guesse...
Return Unique Three-Sum Value Triples
Return Unique Three-Sum Value Triples Problem Implement threeSumTarget(nums, target) -> triples. Return every distinct value triple [a, b, c] for whic...
Deterministic Task Execution Order
This question evaluates a candidate's ability to model task dependencies as a directed graph and produce a valid execution order, a core graph algorit...
Solve Four Online Assessment Coding Tasks
This set of four problems evaluates a candidate's proficiency in core algorithmic competencies including string parsing and bracket validation, bitwis...
Find fair split of a two-color necklace
Given a circular necklace represented by a string s over {'a','b'}, you may cut the necklace at most twice (yielding three contiguous pieces). Can you...
Solve these string, subset, and date problems
You are asked to solve multiple coding tasks. 1) Reverse word order in a string - Input: a string s containing words separated by spaces (may contain ...
Compute Minimum Task Completion Time
This question evaluates understanding of graph algorithms (topological sort and DFS), dependency scheduling, cycle detection, and critical-path comput...
Implement a multi-level digital recipe manager
Implement a RecipeManager class for a digital recipe manager. The task is progressive (Levels 1–4). You can assume a single-process in-memory implemen...
Find Minimum Rooms Needed
This question evaluates understanding of interval scheduling and conflict detection in time ranges, along with algorithmic reasoning and appropriate d...
Find an Exit in a URL Maze
You are given a starting URL for a web-based maze. Each URL represents one room in the maze. Your task is to write a program that discovers whether th...
Solve four classic algorithm problems
You are given four independent coding tasks. For each task, implement the required function. --- Problem 1: Zigzag level-order traversal of a binary t...
Validate Sorted Order Under a Custom Alphabet
This question evaluates a candidate's ability to apply custom ordering rules and string comparison logic, a common variant of array and string validat...
In-Memory File System: Create, Track Duplicates, and List
This question evaluates a software engineer's ability to design and implement an in-memory file system, testing data structure selection, path parsing...
Course Schedule Feasibility
This question tests graph traversal skills and the ability to detect cycles in a directed graph, a core competency in algorithm interviews. It falls u...
Cluster 3D Points by a Distance Threshold
Implement cluster_points_3d(points, D). Create an undirected edge between two distinct 3D points when their Euclidean distance is strictly less than D...
Find Largest Adjacent Stock Price Change
This question evaluates algorithmic problem-solving and data-manipulation skills, specifically date-based sorting, computing signed versus absolute ad...