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 a Jigsaw Puzzle
You are given a collection of jigsaw puzzle pieces. Each piece has four edges — top, right, bottom, and left — and a helper function match(edgeA, edge...
Infection Spread Simulation with Death Threshold
You are given an m x n grid that simulates the spread of an infection over discrete days. Each cell holds one of four states: - 0 — uninfected (health...
Validate a Shopping Cart
You are building the cart validation logic for a food-delivery application. Implement a function validateCart(cart, catalog) that checks whether a cus...
Implement a Banking System
Design and implement an in-memory banking system. All operations are processed in non-decreasing timestamp order. Account identifiers are strings. Mon...
Implement Cache and Count Components
You are asked to solve two independent coding problems in this session, each followed by a short discussion. This mirrors a 60-minute Amazon SDE codin...
Enumerate 4x4 Tic-Tac-Toe Games
You are given an empty $4 \times 4$ board. Two players, X and O, alternate turns with X moving first. A player wins as soon as they place three of the...
Implement a Distributed Rate Limiter
Implement a simple rate limiter library that can run across multiple application servers. The rate limiter should support a sliding time window policy...
Deep Equality of Two Records
Deep Equality of Two Records You are given two records (think of them as instances of a struct / class / nested object). Write a function that decides...
Solve Three Array and Matrix Path Problems
You are given three independent coding tasks. For each task, design an algorithm, implement it, and analyze its time and space complexity. 1. Find the...
Implement a Searchable Logger Pipeline
Design and implement an in-memory logging system. The system should support: 1. Adding handlers - A handler transforms a log message before it is s...
Solve Rooms and Top-K Streams
You are asked to solve two independent coding problems. Problem 1: Minimum concurrent meeting rooms Given a list of meeting time intervals intervals, ...
Solve Five OA Coding Tasks
This is an online-assessment screen consisting of five independent coding tasks. Each task is self-contained — there is no shared state between them —...
Highest Salary Using Java Streams
Highest Salary Using Java Streams You are given a list of Employee objects. Each Employee is a plain Java object (POJO) with the following fields: `ja...
Implement Persistent Memoization LRU Cache
You are given a code skeleton for a memoization cache that wraps functions like a decorator. The cache is already implemented as an LRU cache using an...
Detect and Break a Cycle in a Singly Linked List
You are given the head of a singly linked list. The list may or may not contain a cycle: somewhere in the list, one node's next pointer may point back...
Caesar Cipher with Translation-Table Optimization
Implement a Caesar cipher. Given a string text and an integer shift, return a new string in which every alphabetic character is rotated forward by shi...
Moderator System with Ranking, Communities, and Demotion
You are designing a system that tracks moderator privileges for an online community using a time-ordered log of moderation actions. Each log record ca...
Compute Plant Infection Time
You are given an m x n grid representing a garden. Each cell is one of the following: - 0: empty ground - 1: a healthy plant - 2: an infected plant - ...
Implement a Byte Pair Encoding (BPE) Tokenizer
Implement a Byte Pair Encoding (BPE) Tokenizer Byte Pair Encoding (BPE) is a tokenization algorithm widely used to build the vocabularies of modern la...
Find Shortest Unique Prefixes
Given a list of distinct non-empty words, return the shortest unique prefix for each word in the same order as the input. A prefix of a word is consid...