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."
Implement 2048 tilt move
Problem: Implement a 2048 “tilt” (move) operation You are given a 4×4 board for the game 2048. Each cell contains either 0 (empty) or a power of two (...
Propagate runtime ID across API requests
Debug chained API requests by propagating a runtime ID You are given a sequence of 5 API requests that must be executed in order. - Request 1 (a POST)...
Solve linked list, grid BFS, and median queries
You are given three separate algorithmic tasks. 1) Reorder a linked list by odd/even positions Given the head of a singly linked list, reorder the nod...
Minimize a String Using Allowed Swaps
You are given a string s of lowercase English letters and an array pairs, where each element pairs[i] = [a, b] means you may swap the characters at in...
Compute the Final Robot Score
You are given an array scores, where scores[i] is the score of the i-th robot. Robots repeatedly compete using the following rules: 1. Select the two ...
Implement discounted card purchases
Implement purchase logic for a gem-based card game. There are five gem colors: BLUE, WHITE, GREEN, RED, and YELLOW. Each Card has: - a color represent...
Implement Grid Spread and Transactional Store
You have two coding tasks. Task A: Compute Contamination Spread Time Given an m x n grid: - 0 means an empty cell. - 1 means a fresh item. - 2 means a...
Implement Dependency-Aware To-Do List
Implement an in-memory to-do list in Python for managing tasks and task dependencies. You are given three core types to design: - TaskStatus: an enum ...
Reverse even numbers in a list
Given an integer array nums, remove all odd numbers and return the remaining even numbers in reverse order (preserving no other ordering constraints)....
Implement course scheduling and rate limiter analysis
You are given two independent coding problems. --- Problem 1: Course Scheduling You are planning to take a set of courses and are given prerequisite r...
Implement a multi-rover Mars controller
Problem Build a small command-line “Mars Rover Controller” program. Single rover (v1) A rover starts at coordinate (0, 0) on an infinite 2D grid and i...
Count Islands After Land Additions
You are given an initially empty m x n grid filled with water. Land is added one cell at a time. Implement a function that receives: - m: number of ro...
Minimum Sum of Weekly Maximum Costs
Minimum Sum of Weekly Maximum Costs You are scheduling a marketing campaign rollout. You are given an integer array costs, where costs[i] is the cost ...
Implement crawler, dedup, and persistent LRU
Question LeetCode 1236. Web Crawler: Crawl web pages starting from a given URL within the same hostname. LeetCode 609. Find Duplicate File in System: ...
Find Valid IP Addresses in Files
You are given an absolute or relative path to a directory on the local file system. Write a program that recursively traverses every subdirectory unde...
Merge Overlapping Intervals
Merge Overlapping Intervals You are given an array intervals where each element intervals[i] = [start_i, end_i] represents a closed interval on the nu...
Shift Non-Zero Elements Left In Place
Shift Non-Zero Elements Left In Place You are given an integer array nums. Rearrange the array in place so that every element equal to 0 is moved to t...
Return Top Department Suggestions
You are given a static in-memory list of Suggestion objects loaded by a server: `text Suggestion { ngram: string, department: int, score: int } ...
Compute transfers to balance account debts
Problem: Balance accounts by generating transfers You are given a dictionary/map balances from accountId -> netBalance. - A positive balance means the...
Return Top K Open Businesses
You are given a list of business candidates. Each candidate has at least the following fields: - score: a numeric relevance score - distance: a numeri...