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."
Determine Whether a Word Exists in a Graph
You are given a graph as a list of node objects. Each node contains a character and a list of neighboring nodes that can be visited next. Design and i...
Solve Array Distance and Wiki Navigation
You are given two independent coding tasks. For each task, clarify edge cases, implement the function, and write meaningful test cases. Task 1: Minimu...
Compute letter frequencies from encoded string
Problem You are given an encoded string s representing a string of lowercase English letters (a–z). The encoding follows these rules: 1. Letters a to ...
Simulate Transaction Lock Scheduling
Implement an in-memory transaction lock simulator. You do not need to create real threads; you only need to simulate how transactions acquire locks, b...
Grid Robot Command Simulator
Grid Robot Command Simulator You are building a small command-driven robot simulator. A single robot lives on a 2D grid and is controlled by a stream ...
In-Memory File System: Create, Track Duplicates, and List
In-Memory File System: Create, Track Duplicates, and List Implement an in-memory file system that supports creating files and folders and listing the ...
Implement cursor-based query pagination
You are building a small in-memory database that stores rows with the following fields: - id (string, unique) - score (integer) - payload (string) You...
Determine balanced k values in a permutation
You are given a permutation p of the integers 1..n. For a number k (where 1 <= k <= n), call k balanced if there exists a contiguous subarray p[l..r] ...
Implement worker time and payroll tracker
You are building an in-memory worker management module. Each worker has metadata and a history of office attendance intervals. Implement the following...
Implement Price-Time Order Matching
Implement a simplified limit-order matching engine for a stock exchange. You receive a stream of orders. Each order has: - order_id: unique identifier...
Implement Social Follow Recommendations
Implement an in-memory social network graph with three operations: - follow(followerId, followeeId): record that one user follows another user. Duplic...
Partition a Target String by Source Substrings
You are given two strings: - target: the string that must be represented. - source: the string whose substrings may be used. Return a partition of tar...
Maximize coins with tokens moving by +3
You are given a 1D board represented by a string s of length n. Each character is one of: - '.' — an empty cell - 'C' — a cell containing exactly one ...
Traverse a tree and answer 2D prefix sums
You are given two independent coding tasks. Task 1: In-order traversal of a binary tree Given the root of a binary tree, return the in-order traversal...
Implement simplified Excel with SET/GET/SUM
Implement a simplified in-memory spreadsheet that supports three operations: SET, GET, and SUM, similar to basic Excel functionality. Assumptions and ...
Determine Balloon Popping Time
You are given a rectangular 2D grid representing a field of balloons. Each cell contains exactly one of the following values: - 0: empty cell - 1: inf...
Find LCA With Parent Pointers
Given two nodes in a rooted tree, find their lowest common ancestor. Each node has a pointer to its parent. You are not given the root of the tree. De...
Find Shortest Wiki Click Path
Implement a function that computes the minimum number of clicks needed to navigate from one wiki page to another. You are given two page URIs, start_u...
Compute exclusive CPU time from nested logs
You are given logs from a single-threaded CPU that runs n functions (IDs 0 to n-1). Each log entry is a string in the format: - "functionId:start:time...
Implement spreadsheet cells with formulas
Design an in-memory spreadsheet that supports these operations on cells such as A1, B2, and ranges such as A1:B2: - Set(cell, value): assign an intege...