Software Engineer Coding & Algorithms Interview Questions
Practice 2,526 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."
Simulate a Turn-Based Two-Player Game
Design and implement a simulator for a two-player turn-based board game similar to tic-tac-toe. Requirements: - The game is played on an n x n board. ...
Implement a rule-based rate limiter
Problem Design and implement a rule-based rate limiter that decides whether each incoming request should be allowed or rejected. You are given: - A st...
Count business days excluding holidays
Problem: Count Working Days Between Two Dates Given a start date, an end date (inclusive), and a set of holiday dates, compute the number of working d...
Find all dictionary words in a grid
You are given: - A 2D grid of characters board with m rows and n columns. - A list of strings words (a dictionary). A word can be formed by starting f...
Return all files under a path
You are building a simple file crawler. Task Implement an API/function: - Input: a filesystem path rootPath - Output: a list/array of all file paths c...
Solve sliding window, heap, DP, in-place tasks
You are given several LeetCode-style coding tasks. Implement each with the stated time/space goals and handle edge cases. 1) Sliding Window: longest s...
Compute unique-substring length and first unique index
Solve the following two string problems. Problem 1 — Longest substring with all distinct characters Given a string s, find the length of the longest c...
Find k-th smallest subarray sum
Problem You are given an integer array nums of length n where all elements are positive integers, and an integer k. Consider all non-empty contiguous ...
Validate hiring request under role constraints
Problem You are building a simple HR assignment validator for a platform with companies, employees, and job roles. When the system receives a request ...
Compute distance-sum from every tree node
Problem You are given an undirected tree with n nodes labeled 0..n-1 and a list of n-1 edges. The tree is connected and contains no cycles. For each n...
Implement a Versioned Key-Value File Store
Implement an in-memory file store that supports progressive requirements. Operations include set(key, value), get(key), delete(key), scan(), scan_pref...
Find maximum collinear points
Given a list of 2D points with integer coordinates, return the maximum number of points that lie on the same straight line. Input - points: a list of ...
Implement bitmap font render/compress/invert
Bitmap Character to Image Conversion (3 phases) You are given a bitmap lookup table (a dictionary/map) that represents a tiny “font”. - Key: a charact...
Find largest connected group of overlapping intervals
You are given n people, where person i works during an inclusive time interval [start_i, end_i]. Define a communication graph: - Each person is a node...
Solve listed algorithm problems
The interview note referenced several independent coding problems. Solve each one independently. 1. Median of two sorted arrays You are given two...
Implement sliding-window timestamped average
Problem Implement a class that maintains a time-based sliding window of records and can return the average score within the current window. Requiremen...
Identify read-only files from permission records
You are given a list of file metadata records. Each record contains: - owner (string): the username who owns the file - permission (string): a Unix-li...
Find shortest relationship path using BFS
Problem You are given a set of pairwise relationships between entities (people/services/etc.). Treat each relationship as an undirected edge in a grap...
Format words into wrapped/justified lines
You are given a list of words (strings with no spaces) and an integer maxWidth. Implement text formatting in two variants: Variant A — Basic word wrap...
Check pivot after removing one element
You are given an integer array nums (values may repeat and may be negative). You must remove exactly one element (remove one index). The remaining ele...