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."
Determine Reachability for a Chinese-Chess Horse with Blocked Legs
Determine Reachability for a Chinese-Chess Horse with Blocked Legs Implement a function that determines whether a Chinese-chess horse can reach a targ...
Merge Weekly Time Intervals
Implement merge_weekly_intervals(intervals). Each interval is [start_day, start_time, end_day, end_time]. Days are Mon, Tue, Wed, Thu, Fri, Sat, or Su...
Analyze Overlap in Closed Intervals
Implement closed_interval_overlap(intervals, query_points). Each interval [start, end] is closed, so it contains both endpoints. Return [[maximum_over...
Merge Overlapping Intervals
Merge Overlapping Intervals Implement merge_intervals(intervals) for a list of closed integer intervals. Each interval is [start, end] with start <= e...
Find the Earliest Anagram Window
Find the Earliest Anagram Window Problem Implement firstAnagramStart(text, pattern) -> index. Return the zero-based start index of the earliest contig...
Build a Progressive Employee Tracker
Build a Progressive Employee Tracker The source reports four tracker stages but not exact calls or failure values. The command driver and ordering rul...
Build the Largest Allowed Number Below a Limit
Build the Largest Allowed Number Below a Limit Problem Implement largestAllowedBelow(limit, digits) -> result. limit is a positive decimal integer rep...
Find the Longest Even-Length Word
Find the Longest Even-Length Word Implement longest_even_word(sentence). Words are separated by one or more spaces. Return the first word among those ...
Query a Versioned Array
Query a Versioned Array A fixed-length array starts with all values equal to zero. Process update, save, and get operations. An update changes one ind...
Distribute Money Fairly Under Recipient Caps
Distribute Money Fairly Under Recipient Caps Problem Implement distribute(amount, recipients). amount is a pool of nonnegative integer minor currency ...
Arrange Match Results in Repeating Win-Draw-Loss Order
Arrange Match Results in Repeating Win-Draw-Loss Order You are given a string containing only W, D, and L. Rearrange all characters into rounds. In ea...
Query an Indexed In-Memory Numeric Table
Query an Indexed In-Memory Numeric Table Problem Implement queryIndexedRows(rows, queries) -> answers for one immutable in-memory table containing onl...
Find Shared Motion Periods Across Camera Streams
Find Shared Motion Periods Across Camera Streams A camera emits readings (timestamp, intensity) sorted by strictly increasing timestamp. Intensity is ...
Find a Horizontal Cut That Bisects Rectangle Area
Solve a computational-geometry problem that asks for the horizontal line dividing the combined area of many disjoint rectangles in half. The exercise ...
Validate a Bijective Substitution Cipher
Validate a Bijective Substitution Cipher Given a plaintext string and an encoded string of equal length, determine whether one consistent one-to-one c...
Simulate Players Moving Under a Watcher's Gaze
Simulate Players Moving Under a Watcher's Gaze A one-dimensional road starts at 0 and ends at length. Each player begins at a supplied position and wa...
Find the Single Value in a Sorted Array of Pairs
Find the Single Value in a Sorted Array of Pairs Problem Implement singleNonDuplicate(values) -> value. values is sorted in nondecreasing order. Exact...
Longest Substring Without Repeated Characters
Problem Implement longest_unique_substring(s). Return the longest contiguous substring of s that contains no repeated character. If several substrings...
Process a Mutable Stock-Price Log
Process a Mutable Stock-Price Log Build a small stock-price log and process a sequence of queries and updates. `python def process_stock_log( init...
Calculate Tax from Progressive Brackets
Calculate Tax from Progressive Brackets Problem Implement calculateProgressiveTax(income, upperBounds, ratesBps) -> tax. income is a nonnegative integ...