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."
Maintain the Median of a Data Stream
Maintain the Median of a Data Stream Process a stream of integers and return the median after every insertion. For an odd number of values, the median...
Deep-Copy a Linear Linked List
Deep-copy a finite singly linked list represented by nested Python lists. Preserve values and structure while allocating every returned node independe...
Implement an In-Memory Database
Implement a simple in-memory relational database that processes a sequence of tokenized commands. You are given commands: List[List[str]], where each ...
Implement a Recipe Cart
This question evaluates the ability to design and implement stateful data structures and aggregation logic for tracking ingredient counts, applying ti...
Reverse a Singly Linked List
This question evaluates a candidate's grasp of linked list pointer manipulation and in-place data structure transformation. It tests the ability to re...
Rewrite Sentence-Ending Punctuation
Rewrite Sentence-Ending Punctuation Transform a string in two conceptual steps: 1. Add one extra exclamation mark to every maximal run of existing ! c...
Group movies via graph traversal
You are given n movies labeled 0..n-1 and a list of undirected pairs (a, b) meaning movies a and b are similar. Group all movies into categories where...
Implement a Time-Aware Task Manager
This question evaluates the ability to design and implement in-memory data structures and algorithms for time-aware state management, including per-us...
Find the Largest Monotone Increasing Number
Find the Largest Monotone Increasing Number Problem Given a non-negative integer n, return the largest integer less than or equal to n whose decimal d...
Check Whether Digits Are Monotone Increasing
Check Whether Digits Are Monotone Increasing Problem A non-negative integer has monotone increasing digits when every adjacent pair of digits is non-d...
Build a Banking System with Activity Rankings
Build a Banking System with Activity Rankings Problem Implement an in-memory banking system that processes these operations: - CREATE_ACCOUNT account_...
Compute Max Pooling Values and Coordinates
Practice a Waymo coding interview problem focused on compute max pooling values and coordinates. The prompt emphasizes edge cases, clean implementatio...
Implement a Searchable Logger Pipeline
This question evaluates proficiency in software design, data structures, and algorithmic text search by requiring a transformation pipeline, ordered i...
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...
Implement Task Management and Duplicate Detection
This question evaluates implementation and system-design skills across two problems: an in-memory task management service (CRUD operations, prioritize...
Schedule Non-Overlapping Meetings Efficiently
This question evaluates understanding of interval scheduling and overlap detection, proficiency in selecting efficient data structures for dynamic ord...
Solve word path in grid and trapped water
You are given two independent programming tasks. --- Problem 1: Check if a word exists in a 2D character grid You are given a 2D grid board of charact...
Count Digit-Reversal Equivalent Pairs
Define flipdigits(x) as the integer produced by reversing the decimal digits of non-negative integer x and removing leading zeroes from the reversed r...
Calculate Completion Time for a Single-Server Reactor Queue
A laboratory has one molecular reactor. Each accepted sample takes exactly 5 minutes to process. Samples arrive throughout the day at integer timestam...
Calculate Days Between Arbitrary Gregorian Dates
Calculate the absolute number of days between arbitrary valid Gregorian dates without enumerating each day or relying on a limited date library. Accou...