Software Engineer Coding & Algorithms Interview Questions
Practice 2,306 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."
Solve transaction aggregation and search tasks
Complete the following coding tasks: (a) Given a list of transactions, each with userId and amount (credits positive, debits negative), compute the fi...
Compute ring window max and deletion indices
Part A — Ring window maximum: You are given n computers arranged in a circle, represented by an array of bits (1 = on, 0 = off), and an integer k (1 <...
Implement a Transactional Key-Value Store
Design an in-memory key-value store that supports transactions. Required operations: - set(key, value): assign or overwrite the value for a key. - get...
Calculate Circular Route Query Distance
You are given a circular route with n stops numbered 0 to n - 1. The array distances has length n, where distances[i] is the clockwise distance from s...
Merge Sorted Arrays
You are given two related tasks about sorted integer arrays. 1. Implement a function that takes two arrays sorted in nondecreasing order and returns a...
Find minimal time to serve customers
You manage a bank with k tellers; teller i takes serviceTimes[i] minutes to serve one customer and works continuously. Given an integer array serviceT...
Implement cd and merge intervals
Problem 1: Implement a simplified cd command You are given: - cwd: the current working directory as an absolute Unix path (starts with /). - path: a t...
Generate all permutations of an array
Problem Given an array nums of distinct integers, return all possible permutations of the array. A permutation is an ordering of all elements in the a...
Compute account balances with rejection and overdraft
You are given a list of transaction records as strings. Each record has the format: ` account_id,timestamp,currency,amount ` - account_id: string iden...
Print Sentences as Table
Implement a function that formats a list of sentences as a bordered table. Given: - sentences: a list of strings - width: the fixed content width of e...
Compute max events in any 60-second window
Design a function that, given a non-decreasing list of integer timestamps (seconds), returns the maximum number of events occurring within any contigu...
Solve three classic coding problems
You are given three independent coding tasks. Implement a function for each. 1) Longest Increasing Subsequence (LIS) Given an integer array nums, retu...
Find top co-viewed products
You are given a list of user browsing sessions, where each session is a list of product IDs, a target_product, and an integer k. A product should be c...
Explain hash maps and solve array intersection
1) Explain the internal implementation of a hash map: underlying array/bucket layout, hash function choice, collision resolution strategies (separate ...
Count paths with prime-ending jumps
You are given an integer n representing the top of a staircase, where you start at step 0 and want to land exactly on step n. In one move, you may jum...
Detect Trigger and Resolve Events
You are given transaction logs sorted by non-decreasing timestamp. Each log record has four fields: - timestamp: integer time in seconds - merchant_id...
Check if a binary tree is complete
You are given the root of a binary tree. Determine whether the tree is a complete binary tree. A binary tree is complete if: - Every level, except pos...
Solve Reported OA Coding Problems
The post describes several algorithm questions from an online assessment. The concrete problems that can be reconstructed are: 1. Remove Blocks in a G...
Solve four coding problems
The interview included four independent coding problems: 1. Longest all-healthy service streak You are given the daily health-check results for mul...
Solve meeting and tree problems
The interview included two coding tasks: 1. Merge meeting intervals You are given a list of meeting intervals [[start, end], ...], not necessarily ...