Software Engineer Coding & Algorithms Interview Questions
Practice 2,712 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."
Add One Source to Minimize Grid Inconvenience
Add One Source to Minimize Grid Inconvenience Implement min_max_inconvenience(grid). grid is a non-empty rectangular matrix containing 0 and 1. A cell...
Minimum Cells to Bridge a Magic Grid
This question evaluates proficiency in graph traversal and shortest-path optimization within a 2D grid, testing the ability to find minimum-cost conne...
Design and Implement an LRU Cache
This question evaluates a candidate's ability to design and implement an LRU cache data structure with O(1) time complexity for both reads and writes....
Implement Persistent KV Store Serialization
Implement a persistent in-memory key-value store. Requirements: - Keys and values are arbitrary byte strings or UTF-8 strings; do not rely on delimite...
Implement a Cursor-Based Text Editor
This question evaluates understanding of data structures and algorithmic efficiency for mutable sequences and cursor manipulation, including analysis ...
Solve Wonderful Strings and Grid Queries
This question evaluates algorithm design and data-structure competencies through two problems: a parity-constrained minimum-cost string transformation...
Find Players with Uniquely Determined Rankings
Find Players with Uniquely Determined Rankings Problem There are n players numbered 0 through n - 1. Each result (winner, loser) states that the winne...
Implement logger and card ranking
This coding round contains two independent implementation tasks. Task A: Implement a configurable logger Implement a Logger component that accepts tex...
Evaluate a Boolean Formula AST
Evaluate a Boolean Formula AST Evaluate a formula represented as a JSON-compatible abstract syntax tree. A formula can contain Boolean literals, integ...
Implement a hierarchical file store
This question evaluates proficiency in modeling hierarchical file systems, path parsing and manipulation, managing mutable file contents, and analyzin...
Make Every Password Block a Palindrome
Implement minimum_palindromic_block_changes(password, k). The password length is a multiple of k. Partition it into consecutive blocks of exactly k ch...
Maximize Earnings by Converting Days Off
Implement maximum_schedule_earnings(schedule, k, daily_pay, consecutive_bonus). schedule[i] is 1 for an existing workday and 0 for a day off. Every wo...
Solve binary-tree reverse printing and LPS
You are given a binary tree node definition: - TreeNode { int val; TreeNode left; TreeNode right; } Answer the following two algorithmic questions. 1)...
Build Quadtree and Find Grid Words
This question evaluates divide-and-conquer tree construction and recursive spatial data structures for the quadtree task, and grid-based search and ba...
Convert Valid Snake Case to Lower Camel Case
Convert Valid Snake Case to Lower Camel Case Given a valid snake-case identifier, convert it to lower camel case. The input consists of one or more lo...
Compute Remaining GPUs With Switching Limits
Suppose you manage n GPU clusters with fixed daily capacities capacity[i]. Each day starts fresh with the full capacity, because all GPUs are returned...
Compute task order and layered execution
You have N tasks labeled 0..N-1 and prerequisite pairs (a, b) meaning task a must complete before task b can start. Return any valid execution order o...
Lane-Change Safety and Longitudinal Motion Simulation
This question tests practical application of kinematics, feedback control, and object-oriented design in a real-time simulation context. It evaluates ...
Solve listed algorithm problems
This set of problems evaluates algorithmic problem-solving skills across selection and order-statistics, graph algorithms and traversals, connected-co...
Find k customers with least revenue
Problem You are given a list of purchase events. Each event contains: - customer_id (string or int) - amount (integer, may be 0; assume non-negative u...