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."
Solve restaurant path and order event tasks
You are given two independent coding tasks. Task 1: Shortest paths in a restaurant grid Context: A restaurant is represented as a 2D grid. The waiter ...
Find kth largest element in array
Question Given an unsorted array of integers nums and an integer k, return the k-th largest element in the array. The 1st largest element is the maxim...
Assemble async stream reads into objects
You are implementing a parser in C# that reads a binary stream containing a sequence of records. An interviewer provides these helper functions (you m...
Solve cache, grid path, and substring problems
You are given three independent coding tasks. 1) Bounded cache with eviction Design a data structure that stores key–value pairs with a fixed capacity...
Can you visit all rooms and score parentheses?
Problem 1: Visit all locked rooms with keys There are n rooms labeled 0..n-1. All rooms are locked except room 0. - When you enter room i, you find a ...
Compute sparse dot product and count islands
You are asked to solve two coding problems. Problem 1: Sparse vector dot product Given two vectors A and B of the same length n (potentially large, e....
Solve three coding tasks from onsite
You are given three separate coding tasks (solve each independently). Provide an algorithm and implement it. 1) Circular route with gas and cost You a...
Find longest duplicated substring
You are given a string s consisting of lowercase English letters. A substring of s is any contiguous sequence of characters, i.e., s[i..j) for 0 ≤ i <...
Find the Highest-Cost Top-Level Job
You are given a local JSON file, jobs.json, containing an array of background job records. Each record has: - id: a unique job identifier - parent_id:...
Check Digits and Combine Ranges
You are asked to solve two independent coding tasks. Task 1: Check Whether an Integer Reads the Same Backward Given an integer x, return true if its d...
Serialize Expression Tree Minimizing Parentheses
Given a binary expression syntax tree, serialize it into an infix string using the minimum number of parentheses required to preserve the tree's evalu...
Find largest subset sharing a common digit
You are given an array nums of length N (1 ≤ N ≤ 100). Every element is a two-digit integer between 10 and 99 (inclusive). Select as many elements as ...
Find Kth Smallest in BST
You are given the root of a binary search tree and an integer k. Return the value of the node that would appear in the kth position if all node values...
Implement LRU and target-sum combinations
Design and implement the following: 1) An in-memory cache with Least Recently Used (LRU) eviction supporting get(key) and put(key, value) in O( 1). If...
Find First Prefix-Matching Word
Given an array of strings words and a prefix string prefix, return the smallest index i such that words[i] starts with prefix. If no word matches, ret...
Find Longest Activatable Server Streak
You are given a binary array serverStates, where 1 means a server is currently on and 0 means it is off. You may turn on at most k currently off serve...
Optimize flight and cargo bookings for profit
OptiCargo: make the booking algorithm profitable You are given two streams/lists: - Flights you may attempt to book. Each flight has: - flight_id ...
Compute Maximum Area Under Adjacent Bars
You are given an array heights of n non-negative integers. Each value represents the height of a vertical bar of width 1, and the bars are placed next...
Implement ASCII canvas and solve two data problems
Solve the following coding tasks. 1) ASCII Canvas / Printer Implement a small drawing engine for a fixed-size canvas of width = 10 and height = 6. - E...
Solve expression evaluator and string decoder
1) Implement an arithmetic expression evaluator that reads expressions from a text file (one expression per line) and outputs the evaluated result for...