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."
Process Mutable Matrix Sum Queries
You are given a 2D integer matrix and a list of queries. There are two query types: - set r c v: update the value at row r and column c to v - get r1 ...
Find longest substring with ≥k repeats
This question evaluates proficiency with string-processing techniques and character frequency analysis, focusing on algorithmic skills in the Coding &...
Implement a memory allocator with malloc/free
Problem You are implementing a simplified memory allocator over a contiguous memory region. Initialize the allocator with a fixed total size: - alloca...
Compute longest common subsequence length
This question evaluates understanding of dynamic programming and sequence processing, measuring competence in reasoning about optimal substructure, ov...
Compute Inherited Role Privileges
You are given n roles. The array initialPrivileges has length n, where initialPrivileges[i] is the list of privileges directly assigned to role i. You...
Build a concurrent web crawler
This question evaluates understanding of concurrent programming, synchronization, thread safety, and graph traversal as applied to a multithreaded web...
Solve delimiter and CSV tasks
This question evaluates skills in string parsing and bracket balancing, CSV/file parsing and joining, computation of derived values, and sorting, emph...
Count Numbers Inside All Intervals
You are given: 1. An integer array nums. 2. A list of intervals intervals, where each interval is represented as [start, end]. The intervals are not s...
Count numbers with same popcount up to all-ones bound
This question evaluates skill in bit manipulation and combinatorial counting over binary representations in the Coding & Algorithms domain, specifical...
Find all anagram start indices
This question evaluates proficiency in string manipulation, algorithmic efficiency, and pattern detection through character frequency analysis, assess...
Construct a circular gift exchange across families
This question evaluates ability to model constrained permutations and apply graph-theoretic and combinatorial reasoning to produce a single circular o...
Determine winner in stack-merging game
This question evaluates understanding of combinatorial game theory, impartial game analysis, state-space encoding, and efficient state-space search te...
Solve common search/parse/graph frequency tasks
This multi-part question evaluates algorithmic problem-solving skills across searching and sorting variants, rotated-array search, nested string decod...
Implement an in-memory database with TTL and backup
In-Memory Database (Levels 1–4: TTL and Backup/Restore) Implement an in-memory database that stores records identified by a string key. Each record co...
Validate whether brackets are properly nested
This question evaluates proficiency in sequence validation, paired-token matching, and the use of data structures to manage nested elements within str...
Solve meeting-room scheduling and shortest paths
This question evaluates proficiency in interval scheduling and resource allocation as well as shortest-path computation in weighted directed graphs, e...
Rotate a 3×3 digit grid by 180°
This question evaluates understanding of grid and string manipulation, coordinate transformations, spatial reasoning, and character validation in cons...
Maximize capacity with primary-backup pairing
This question evaluates combinatorial optimization and constrained matching skills, focusing on algorithm design, complexity analysis, and resource-al...
Design a rolling hit counter API
This question evaluates proficiency with data structures for time-window aggregation and understanding of time/space trade-offs when counting events w...
Minimize total factory cost with distance penalties
This question evaluates dynamic programming and sequence optimization skills, focusing on modeling cumulative build costs with adjacency distance pena...