Software Engineer Coding & Algorithms Interview Questions
Practice 2,743 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."
Design a dynamic leaderboard with rank queries
This question evaluates proficiency with dynamic data structures and order-statistics, including maintaining sorted order under updates, deterministic...
Determine order of alien alphabet
This question evaluates the ability to infer ordering constraints among characters, model dependencies from ordered examples, and reason about edge ca...
Minimize reduction cost and validate equal-sum pairs
This two-part question evaluates array manipulation and algorithmic problem-solving skills: the first task focuses on optimizing cumulative operation ...
Find minimum total range-increment to sort
This question evaluates algorithmic problem-solving skills in array manipulation and optimization, focusing on reasoning about range-increment operati...
Solve grid shortest-path and tree DP
This question pair evaluates proficiency in fundamental algorithmic techniques: finding shortest paths in a grid via breadth-first search and applying...
Calculate transaction fees from CSV records
This question evaluates parsing and processing of structured transaction data, implementing multi-dimension fee computation rules (provider-, transact...
Find shortest subarray with at least k distinct
This question evaluates proficiency in array manipulation, frequency counting, and efficient tracking of distinct values within contiguous subarrays, ...
Find shortest subarray with ≥k distinct integers
This question evaluates understanding of array algorithms, handling of distinct-element counting, and the ability to design time- and space-efficient ...
Answer parity-alternation range queries
This question evaluates a candidate's ability to reason about array properties and design efficient range-query processing for alternating-parity suba...
Implement iterator merging lists with filtering
This question evaluates iterator/generator design, sequence merging, stateful filtering and deduplication, checking a candidate's ability to maintain ...
Compute top-N items from log stream
This question evaluates the ability to aggregate frequencies and compute top-N results from logs, covering competencies in frequency counting, top-k a...
Implement lazy array and KV store
This question evaluates understanding of lazy evaluation and functional transformation chaining for a LazyArray alongside in-memory data structure des...
Solve counting and frequency coding tasks
This question evaluates algorithmic skills in counting, frequency analysis, constraint-based pair counting, and stream-oriented tokenization and ranki...
Evaluate a Four-Operator Expression
This question evaluates expression-evaluation skills such as operator precedence, integer arithmetic semantics (truncating division), and string parsi...
Compute shortest path in a 2D grid
Given an m x n grid where: - 0 represents an empty cell you can move through - 1 represents a blocked cell you cannot enter - movement is allowed in 4...
Find earliest time all riders become connected
You are given a time-ordered log of events involving Uber riders. Each event has a timestamp and two rider names. Event types: 1. t X shared-ride-with...
Implement memcpy with misaligned addresses
This question evaluates a candidate's understanding of low-level memory manipulation, pointer alignment, and the implementation of efficient byte-copy...
Compute dasher pay with peak-hour query
This question evaluates a candidate's ability to perform time-interval arithmetic, prorated pay aggregation, robust handling of missing or inconsisten...
Determine a one-step string transformation
Given two lowercase strings source and target, determine whether target can be obtained from source using at most one of the following operations, and...
Design a stack with max removal
Design a stack-like data structure for integers that supports the following operations efficiently: - push(x): insert x onto the stack. - pop(): remov...