Software Engineer Coding & Algorithms Interview Questions
Practice 2,257 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 crawler, dedup, and persistent LRU
Question LeetCode 1236. Web Crawler: Crawl web pages starting from a given URL within the same hostname. LeetCode 609. Find Duplicate File in System: ...
Find an Exit in a URL Maze
You are given a starting URL for a web-based maze. Each URL represents one room in the maze. Your task is to write a program that discovers whether th...
Compute Jaccard similarity between two strings
Jaccard Similarity of Two Strings Given two strings a and b, compute their Jaccard similarity based on token sets. Tokenization rules - Convert to low...
Compute peak busy dashers with overlaps
You are given delivery logs as (dasherId, startTime, endTime) with integer times, where endTime is exclusive. A single dasher may accept multiple orde...
Design and implement an LRU cache
Problem Design and implement an LRU (Least Recently Used) Cache that supports the following operations in O(1) average time: - get(key) → returns the ...
Implement Ultimate Tic-Tac-Toe
Design and implement a playable Tic-Tac-Toe system in two parts. Part 1: Standard Tic-Tac-Toe Implement a TicTacToe class for a standard 3x3 board. Re...
Find Shortest Covering Substring
Given two strings source and target, find the shortest contiguous substring of source that contains every character from target, including duplicate o...
Implement follow graph with snapshots and recommendations
Design and implement an in-memory “social network” component that supports following/unfollowing, point-in-time (snapshot) queries, and a simple recom...
Paginate forward and backward through results
You are asked to extend a basic pagination system to support forward and backward navigation, similar to a cursor-based API. You are given: - A zero-i...
Filter ads by a single rule
Single-Rule Ad Filter Context When a user watches content, the system needs to filter an ad pool to find ads that match one rule. Implement a lightwei...
Determine order of alien alphabet
You are given a list of words sorted in lexicographic order according to an unknown ("alien") alphabet. Task Return one valid ordering of the unique c...
Design Spreadsheet Formula Cells
Design an in-memory spreadsheet that supports assigning either literal integer values or formulas to cells. Cells are identified by names such as A1, ...
Find maximum collinear points
Given a list of 2D points with integer coordinates, return the maximum number of points that lie on the same straight line. Input - points: a list of ...
Maximize Boundary-Difference Subarray Sum
Given an integer array nums and an integer k, find the maximum possible sum of a non-empty contiguous subarray whose first and last elements differ by...
Design Sliding-Window Average Tracker
Design a class that tracks records in a sliding time window. Implement the following API: - init(time_window): initialize the object with a window siz...
Compute total active time per Twitter Space
You are given an event log of user activity in Twitter Spaces. Each record has: - operation: one of create, join, leave - space_id: identifier of the ...
Implement an LFU Cache
Design and implement a Least Frequently Used cache. The cache has a fixed positive capacity and supports the following operations: - get(key): Return ...
Implement a TTL LRU Cache
Design and implement an in-memory bounded cache with per-entry expiration and LRU eviction. The cache stores uint32_t keys and std::string values. Eac...
Minimize Boys Needed Beside Girls
You are given a row of seats in a kindergarten classroom, represented by a string seats. - G means the seat is occupied by a girl. - - means the seat ...
Solve Tree Columns And Maze Variants
Answer the following coding tasks from the interview. 1. Binary-tree column grouping: Given the root of a binary tree, group node values by vertical c...