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."
Sort trade executions into a canonical order
You are building a small component in a trading system that consumes trade execution records from an upstream feed. The records may arrive out of orde...
Minimize the Maximum Edge on a Path
Minimize the Maximum Edge on a Path You are given a weighted undirected graph and two vertices, start and target. Define the stress of a path as the l...
Solve Shortest Paths and Rental Allocation
This question evaluates understanding of shortest-path algorithms and reachability in weighted graphs (including directed vs. undirected handling and ...
Design an in-memory filesystem and circular queue
Part A — Design an in-memory hierarchical file system. Requirements: - Support operations: ls(path), mkdir(path), createFile(path, content), appendToF...
Reverse Nodes in K-Sized Groups
This question evaluates skills in manipulating singly linked lists, pointer reassignments, and performing in-place group transformations while meeting...
Find gaps between intervals
You are given a list of integer intervals intervals, where each interval is represented as [start, end] (inclusive), and start <= end. Two intervals m...
Count Blocked Rate-Limited Requests
You are given an in-memory request log for a web platform. Each log entry has: - timestamp: an ISO-8601 UTC timestamp - request_ip: the client IPv4 ad...
Return a Binary Tree in Zigzag Level Order
Implement zigzag_level_order(values) for a binary tree serialized as a zero-based heap array. For an existing node at index i, its children are at 2 ...
Check a Linked List Palindrome Without Mutating It
Implement linked_list_palindrome(values), where values is the traversal-order serialization of a singly linked list of integer values. Return whether ...
Traverse a Matrix in Clockwise Spiral Order
Implement spiral_order(matrix) for a rectangular matrix. Return all values in clockwise spiral order, beginning at the top-left corner and first movin...
Solve Two Array Optimization Problems
You are given two coding problems from the same interview round. Problem 1: Split a gold chain fairly An array weights represents the weights of conse...
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...
Validate transactions with risk rules and reporting
This question evaluates skills in CSV parsing and input validation, numerical and timestamp parsing, rule-based fraud detection and behavioral feature...
Parse and Reconstruct Stack Trace
Given a multi-line stack trace string from a single thread (e.g., each frame is in the form 'at Module::Function(file:line)'), design and implement a ...
Detect duplicate files efficiently
You are given access to a very large file system containing file paths and read access to file contents. Design an algorithm to identify groups of fil...
Design document layer with undo/redo
Design a document layer that supports applying edits and undo/redo. Implement apply(op) to mutate the document, undo() to revert the most recent commi...
Optimize with a cache/hash map
Question This is a follow-up to your existing implementation (for example, a script that repeatedly resolves file paths or parses license strings into...
Apply Range Overwrite Queries
You are given an integer array nums of length n and a list of range-assignment queries. Each query is a tuple (left, right, value), where left and rig...
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...
Print a Centered Pascal Triangle
Given a positive integer height, generate the first height rows of Pascal's triangle and print them as a centered text triangle. Formatting requiremen...