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."
Build Event Notification Engine
You are implementing part of a marketing engine for an event marketplace. Assume the following data is available: - Customer: id, city, birth_month, b...
Implement a versioned recipe management system
You are asked to implement an in-memory Recipe Management System (similar in difficulty to a simple banking/in-memory DB exercise). The system support...
Implement an LRU cache
Problem: LRU Cache Design and implement a data structure that supports an LRU (Least Recently Used) cache with a fixed capacity. Requirements Implemen...
Implement binary encode/decode with frequency tree
Problem Implement a binary encoding and decoding scheme for strings based on character frequencies (Huffman-like coding). You must implement two funct...
Merge overlapping 2D line segments
You are given a list of 2D line segments. Each segment is represented as a list of 2D points [(x1,y1), (x2,y2), ...] that all lie on the same straight...
Design a restaurant waitlist system
You are implementing the waitlist system for a restaurant. Parties arrive over time, can cancel, and get seated when a table becomes available. Rules ...
Compute minimum rooms for meeting schedule
Problem You are given a list of meetings, where each meeting is represented as a pair of integers [start, end] (with start < end) indicating the meeti...
Implement a custom list with iterator and map
You are asked to implement a simple generic list type without using any built-in collection classes (e.g., no ArrayList, LinkedList, Vector, etc.). Yo...
Build a CSV Query Engine
Implement a small in-memory CSV query engine. You are given CSV text where the first line contains column headers and each remaining line contains one...
Implement Minesweeper and Word Search
Solve the following coding problems. Problem 1: Generate and Print a Minesweeper Board You are given integers rows, cols, and mineCount. Generate a ro...
Compute Top-K word frequencies under a path
Given a filesystem path that may contain nested subdirectories and files, compute the top K most frequent words across all files. Describe an in-memor...
Return valid task order from prerequisites
You are given N tasks labeled 0..N-1 and a list of directed dependency pairs [(a,b), ...] meaning task a must be done before task b. 1) Return one val...
Solve Prime Jumps and Pipeline Scaling
An online assessment contains two independent coding problems. Solve both. Problem 1: Prime-Constrained Score Jump You are given an integer array scor...
Determine Whether Queries Can Zero Array
You are given an integer array nums of length n and a list of range queries queries, where each query is of the form [l, r, val]. For a query [l, r, v...
Compare Complete or Partial Hands
Implement a hand comparison engine for a simplified poker-like card game. Each player has a hand represented by an array of card strings. A card is en...
Validate IPv4 Address List
You are given an array of strings addresses. Return true if every string in the array is a valid IPv4 address; otherwise return false. An IPv4 address...
Find first and last occurrence in sorted array
Problem You are given an array of integers nums sorted in non-decreasing order and an integer target. Return a pair of indices [first, last] such that...
Implement an in-memory storage with TTL and scans
Problem Implement an in-memory storage system similar to a tiny key–field–value database. - Data model: a 2-level map key -> field -> value. - Each op...
Implement streaming RLE and bit-packed codec
You are implementing a simple compression scheme for sequences of 32‑bit signed integers. The codec should support two encoding strategies: 1. Run‑Len...
Compute the Eddington number from ride distances
Given a list of positive integers distances, where distances[i] is the distance traveled on day i, compute the cyclist’s Eddington number E: E is the ...