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."
Compute weighted sum of nested lists
Compute weighted sum of nested lists Given a nested collection that can contain integers or other nested collections, compute the depth-weighted sum w...
Design Minesweeper and Optimize Click Performance
Design a Minesweeper game. At game start, initialize an m×n board by randomly placing k bombs. Implement: ( 1) printBoard(): return a human-readable s...
Decide palindrome within k deletions
Decide palindrome within k deletions Given a string s and integer k, decide whether s can be transformed into a palindrome by deleting at most k chara...
Find all anagram start indices
Problem Given two strings s and p, return all starting indices of substrings in s that are anagrams (permutations) of p. Input - s: string - p: string...
Pivot order-status counts
Pivot order-status counts Given an orders table (order_id, shopper_id, order_date, status, …), pivot the data so that each row is one shopper and each...
Solve Rotting Oranges and Bus Walk Reachability
Question LeetCode 994. Rotting Oranges. 2) Given start and end grid coordinates, an integer k (maximum walking distance), and a bidirectional graph of...
Determine most popular concert city
Determine most popular concert city Given a set of concert venue vote records, determine which city is the most popular. How would you normalize city ...
Handle invalid Lisp expression parsing
Question LeetCode 736. Parse Lisp Expression – Given a string representing a Lisp-like expression containing let/add/mult operations and variable bind...
Delete duplicate files via DFS
Question LeetCode 609. Find Duplicate File in System – Implement an algorithm (using DFS/backtracking) to delete files with duplicate content in a fil...
Solve tree distance and design file system
Solve tree distance and design file system Given a binary tree, find the maximum distance between two 'alive' nodes, where 'alive' nodes are initially...
Find Lowest Common Ancestor with Parents
Question LeetCode 1650. Lowest Common Ancestor of a Binary Tree III Compute the time and space complexity of your solution https://leetcode.com/proble...
Solve UTF-8 Validation & Shortest Path
Question LeetCode 393. UTF-8 Validation LeetCode 1091. Shortest Path in Binary Matrix https://leetcode.com/problems/utf-8-validation/description/ http...
Solve palindrome pairs and key path
Question LeetCode 336. Palindrome Pairs; LeetCode 864. Shortest Path to Get All Keys https://leetcode.com/problems/palindrome-pairs/description/ https...
Merge overlapping intervals
Question LeetCode 56. Merge Intervals – Given a collection of intervals, merge all overlapping intervals into one and return an array of the non-overl...
Resolve user roles across account hierarchy
You are given: 1. An account hierarchy: `json accounts = [ {"accountId": "org_1", "parent": null}, {"accountId": "wksp_1", "parent": "org_1"} ] ` ...
Construct a circular gift exchange across families
You are given a “big family” composed of several sub-families. Each sub-family is a list of unique person IDs/names. Example input: - [[A1, A2], [B1, ...
Solve linked list reversal and minima problems
You are given three independent coding tasks. 1) Reverse a singly linked list Input: The head of a singly linked list. Output: The head of the same li...
Solve grid shortest-path and tree DP
Problem A — Shortest path in a maze (BFS) You are given a 2D grid representing a maze: - grid[r][c] is either '.' (open cell) or '#' (wall). - You are...
Compute balances, rejections, and platform reserve
You are given a set of transactions in CSV-like format with columns: - account_name, timestamp, currency, amount Assume: - Transactions for all accoun...
Count three-digit numbers with distinct digits
Problem Given two integers left and right such that 100 ≤ left ≤ right ≤ 999, count how many three-digit integers x in the inclusive range [left, righ...