Software Engineer Coding & Algorithms Interview Questions
Practice 2,306 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."
Maximize memory capacity with primary-backup servers
You are helping to optimize the capacity of a cloud system. There are n servers, where n is always even. The memory capacity of the i-th server is giv...
Detect and remove matched words in a char stream
You are processing a stream of characters (arriving one-by-one). You are also given a list of target words. Each time a new character arrives, it is a...
Calculate Daily Driver Pay
You are given a one-day event log for a delivery driver. Each input record is a JSON event with fields such as order_id, event_type, timestamp, and ba...
Rotate a Matrix In Place
Given an n x n integer matrix, rotate it in place by 90 degrees clockwise. As follow-ups, explain how to modify the approach to rotate the same matrix...
Solve path and inventory problems
The coding rounds contained two algorithmic exercises: 1. Maximum multiplier path You are given an m x n grid of integers. Start at the top-left ce...
Solve Grid Path and Graph Sampling
This interview note described two coding problems: 1. Grid path with shortest time and lowest cost You are given an m x n grid containing a start...
Implement AudioStream Mixer
Implement an AudioStream class that mixes multiple named audio tracks on an integer timeline. Requirements: - The constructor receives a fixed list of...
Implement a simple service with tests
Implement a simple service with tests You're given a short written specification for a small service class (no external dependencies). Implement the c...
Solve tree traversal and two-pointer problems
Solve tree traversal and two-pointer problems Implement the following independent problems: 1) Vertical columns: Given a binary tree, return lists of ...
Solve unique triplets summing to target
Solve unique triplets summing to target Implement a function that, given an integer array nums and an integer target T, returns all unique triplets [x...
Find shortest substring with n unique letters
Problem You are given a string s consisting of lowercase English letters and an integer n (1 ≤ n ≤ 26). Find the length of the shortest contiguous sub...
Search Book Titles
You are given a list of book titles and a user query string. Return all titles that are relevant to the query. A title is considered relevant if any t...
Solve substring and worker assignment
The interview included two algorithm problems: 1. Shortest covering substring: Given two strings s and t, return the shortest contiguous substring of ...
Validate Bracket Sequence
Given a string containing only the characters ()[]{}, determine whether the brackets are properly matched. A bracket string is considered valid if: - ...
Find Business Degrees of Separation
Implement a feature for a small-business network. QuickBooks has data showing business relationships, such as one business regularly buying goods or s...
Convert 32-bit integer to hexadecimal
Problem Given a 32-bit signed integer num, return its hexadecimal representation as a string. Requirements - Use lowercase letters a-f. - Do not inclu...
Implement credit ledger with out-of-order timestamps
Problem You are implementing a GPU credit ledger that supports adding credits, charging credits, and querying balances. Requests can arrive in any tim...
Merge overlapping time intervals
Problem You are given a list of closed intervals intervals, where each interval is [start, end] and start <= end. Merge all intervals that overlap and...
Output lexicographically largest DFS traversal
You are given a graph with n nodes labeled 1..n and m edges. Assume an undirected graph unless stated otherwise. You must output a node visitation seq...
Count all palindromic substrings
Given a string s, count how many substrings of s are palindromes. - A substring is a contiguous block of characters. - A palindrome reads the same for...