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."
Count k for consecutive-sum generator
An array generator service produces a consecutive-integers array starting at a positive integer k: [k, k+1, ..., k+m−1] for some m ≥ 1. The service re...
Implement Binary Search in C++
From scratch in C++, implement binary search over a sorted array to locate a target value. Provide a correct iterative implementation, handle not-foun...
Implement and Optimize Vector Multiplication
Implement vector–vector multiplication for dense vectors (e.g., dot product). Then, describe how you would optimize the implementation for a parallel ...
Design a coupon redemption system
Implement an in-memory coupon service supporting: addCoupon(code, discount, expiresAt, totalLimit, perUserLimit); redeem(userId, code, now) -> success...
Check palindrome number and next palindrome
Problem You are given a non-negative integer n. 1. Determine whether n is a palindrome in base-10 (it reads the same forward and backward). 2. Follow-...
Evaluate arithmetic expression using DFS
Given a string representing an arithmetic expression with non-negative integers, +, -, *, /, parentheses, and optional spaces, evaluate its value. Use...
Implement a per-user API rate limiter
You are building an API gateway that must enforce per-user rate limits. Task Implement a rate limiter with the following API: - RateLimiter(int maxReq...
Merge Sorted Arrays In Place
You are given two non-decreasing integer arrays. - A has length m + n. - The first m elements of A are valid sorted numbers. - The last n elements of ...
Compute Products Excluding Each Index
You are given an integer array nums of length n. Return an array answer such that answer[i] equals the product of every element of nums except nums[i]...
Find largest subset sharing a common digit
You are given a list of two-digit integers (each from 10 to 99, inclusive). You want to select as many numbers as possible in one selection such that:...
Add two big integers from digit lists
You are given two non-empty singly linked lists (or arrays) representing two non-negative integers. The digits are stored in reverse order, and each n...
Count friend requests based on age rules
Problem You are given an array ages, where ages[i] is the age of the i-th person. A person of age A will send a friend request to a person of age B if...
Detect recurring transactions from a ledger
You are given a list of credit/debit card transactions. Each transaction has: - transaction_date (YYYY-MM-DD) - merchant (string) - amount (decimal, p...
Implement plurality and majority voting
You are given an array votes of length n, where each element is a candidate identifier (string or integer). Implement two voting systems: 1) Plurality...
Maximize min+max of contiguous subarray
You are given an array of n positive integers nums. Find a contiguous subarray that contains at least two elements and maximizes the value: > (minimum...
Implement Server Number Allocation
Implement a server number allocator for a data center. Servers have a string type, such as "web", "database", or "cache". Each server type has its own...

Schedule Ready Tasks by Deadline
You are building a workflow scheduler. Each task has: - a unique task_id - an integer deadline - an optional list of prerequisite tasks that must be c...
Rearrange array to maximize positive prefix sums
Problem You are given an integer array a of length n. You may rearrange the elements in any order. Define the prefix sums of a permutation p as: - pre...
Count ways to make change (DP)
Problem You are given an integer amount and an array of positive, distinct integers coins, where each coin value can be used unlimited times. Return t...
Implement a crypto order management system
You are building an in-memory crypto order management system. You must parse commands from standard input and print outputs for query commands. Order ...