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."
Implement a balance tracker and interval merger
This screening contained two coding exercises. Part 1: Driver balance tracker You are building an in-memory ledger for a delivery platform. Each updat...
Maximum Profit from Dated Stock Trade Records
Maximum Profit from Dated Stock Trade Records You are given a log of stock trades. Each trade is a record [date, symbol, price]: - date — a calendar d...
Implement Text Layout and Query Parsing
This question evaluates string-processing and parsing competencies, covering tokenization, constrained line-wrapping and layout decisions (including p...
Decode an anagram sentence using vocabulary constraints
You are given: - vocab: a list of lowercase words (the "dictionary") - s: a string containing space-separated scrambled words Each scrambled word in s...
Compute buffet revenue with capacity and waiting
A casino buffet has a maximum capacity capacity (number of customers that can be seated at once). You are given: 1) prices: an array where prices[i] i...
Decrypt a twice-encrypted message using known pairs
Three people pass notes A → B → C → A. Notes are encrypted using a character-substitution cipher (a one-to-one mapping per character). You are given t...
Return dictionary words matching a prefix
You are given a list of strings words (a dictionary) and a string prefix. Return all words in words that start with prefix. Clarifications/constraints...
Compute Driver Pay with Double-Pay Windows
You are building payroll logic for a delivery platform. Given a list of order records for one delivery driver, compute the total amount the driver sho...
Implement Interview Coding Problems
Solve the following independent coding tasks from a new-grad software engineering interview. 1. Implement a hash map from scratch. - Support integer k...
Find safe travel intervals between planet influences
You are planning a space route along a one-dimensional line (the x-axis). You are given a list of planets. Each planet is represented by an integer pa...
Process Transactions and Compute Balances
This question evaluates a candidate's ability to implement stateful transaction processing, accurate integer bookkeeping across accounts and currencie...
Return Words Matching a Typed Prefix
Given words and a query prefix, return all words starting with that prefix in lexicographic order. Implement: `python def prefix_matches(words: list[s...
Implement staircase printing and distributed mode/median
Problem A: Print a “staircase” pattern Implement a function that prints a staircase with n rows. Input - An integer n (n >= 1) Output - Print n lines....
Count Nodes Using Asynchronous Messages
You are given the identifier of a root node in a distributed network. Each node represents a separate machine. A node cannot directly inspect another ...
Find the First Unique Log
This question evaluates a candidate's ability to analyze and implement efficient data-processing and frequency-detection strategies on ordered string ...
Implement lexicographically smallest Two Sum
You are given an unsorted integer array nums and an integer target. Return the indices [i, j] (0-based) such that i < j and nums[i] + nums[j] == targe...
Return all file paths via DFS
You are given an in-memory representation of a file system as a tree. Each node has: - name (string) - isFile (boolean) - children (list of nodes, emp...
Solve Shipping and Bundle-Cost Problems
This question evaluates algorithmic reasoning for scheduling and capacity planning (minimum daily shipping capacity) and combinatorial optimization wi...
Find mode in a trinary search tree
You are given the root of a trinary search tree where each node has up to three children: `text class Node { int val; Node left; // all values ...
Implement a timestamped map
This question evaluates a candidate's ability to implement time-indexed key-value storage, covering data structure design, versioning semantics, and a...