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."
Implement streaming enrichment aggregator
You are building a real-time document enrichment aggregator for a Kafka-like event stream. Each incoming event has the following fields: - document_id...
Answer multi-round grid and data-structure questions
You are given several independent interview-style coding questions. 1) Find first/last occurrence in sorted array (+ dynamic updates follow-ups) Given...
Implement Concurrent Any-True Shot
You are given a function shot(index) -> bool. Each call may take between 1 and 10 seconds to return. Implement volleyShot(indices) -> bool for a list ...
Implement Caches, Undo, and Traversal
Solve the following coding tasks. For each task, define clean APIs, implement the core logic, and be prepared to explain time and space complexity. Ta...
Implement Expiring LRU Cache
Implement an in-memory key-value cache with least-recently-used eviction and per-entry expiration. The cache has a fixed positive capacity. Each inser...
Build the Largest Available Sequence
You are given an integer array values, a binary string state of the same length, and an integer m such that 0 <= m <= values.length. Build a sequence ...
Implement Matrix Move and Logger
Implement the following two coding tasks. 1. Move a submatrix in place. You are given an m x n matrix, a source rectangle defined by its top-left corn...
Implement Spreadsheet Cell Updates
Design and implement a small spreadsheet engine that supports setting and reading cell values. A cell name is a string such as "A1", "B12", or "AA3". ...
Design and implement a Python solution
Design and implement a solution in Python for a problem specified by the interviewer. Outline your approach and chosen data structures, justify key de...
Answer two coding questions (SQL and DP)
Solve the following two coding tasks. Problem A (SQL) You are given a table: Employee(id INT, salary INT) Write a query that returns the second highes...
Implement four data-structure/string geometry tasks
Problem A — Multiply two non-negative integer strings You are given two strings num1 and num2 representing non-negative integers in base-10. - Return ...
Validate bracket sequence
Given a string s containing only the characters (, ), [, ], {, and }, determine whether the brackets are properly matched. A string is valid if: - Eve...
Design in-memory payment and friendship system
Design and implement an in-memory payment system with simple social features. The system processes a sequence of requests that can: 1. Register a user...
Implement Food Delivery Billing
You are implementing billing logic for a food-delivery platform. Each completed delivery record contains: - order_id - driver_id - requested_at — when...
Implement Social Graph Snapshot Queries
You are given a read-only snapshot of a social network. The snapshot is represented as a directed graph where an edge (u, v) means user u follows user...
Compute height of tree with deleted nodes; minimize deletions
You are given a rooted tree (not necessarily binary). Each node has a list of children. Some nodes are marked as deleted = true. Define the effective ...
Rank songs by pairwise user preferences
You are given preference rankings for n users over m songs. Each song is labeled from 0 to m - 1. For each user i (0-indexed), you are given an array ...
Select words to maximize unique characters
Problem You are given an array of strings words. You may choose any subset of these strings and concatenate the chosen strings in any order. Your goal...
Find shortest path on infinite grid
You are given an infinite 2D grid with integer coordinates. From a cell (x, y) you may move in 4 directions (North/South/East/West) by 1 cell per move...
Find k Smallest Pair Sums
Given two integer arrays nums1 and nums2, both sorted in non-decreasing order, and an integer k, return the k pairs with the smallest sums, where each...