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."
Compute inverse-depth weighted sum of nested lists
Inverse-Depth Weighted Sum of a Nested List You are given a nested list of integers. Each element is either: - an integer, or - another nested list. D...
Implement an LFU cache with O(1) operations
Design and implement an LFU (Least Frequently Used) cache. The cache supports: - get(key): return the value for key if present, else return -1. - put(...
How to maximize rewards with exactly k tasks
You are assigning n independent tasks to two interns. - Each task must be done by exactly one intern. - If intern 1 does task i, you earn reward1[i] p...
Find secret word with match-count feedback
Problem You are given a list of unique lowercase words, all of the same length (e.g., length = 6). One of these words is a secret word. You can intera...
Find minimum-latency path across dependent services
You are given a set of services and directed dependencies between them. Each dependency edge represents a call from one service to another with a know...
Simulate 2048 and pack board into uint64
Problem: 2048 move simulation + board compression You are implementing part of the 2048 game on a fixed 4×4 grid. Part A — Simulate a move Given a 4×4...
Compress vertices into uniques and indices
You are given an array of vertices (a 2D array). Each vertex may repeat. Implement a simple “compression” that produces: 1. unique_vertices: the list ...
Construct smallest number from I/D pattern
Problem You are given a string pattern consisting only of the characters: - 'I' meaning the next digit is increasing - 'D' meaning the next digit is d...
Compute sums and maximum path in a tree
You are given a binary tree whose nodes store integer values. You must implement your own Node class (e.g., val, left, right). Task Write a function t...
Solve Array Merge and Parentheses Cleanup
You are asked to solve two coding problems. Problem 1: Merge Three Sorted Arrays Given three integer arrays, each sorted in nondecreasing order, merge...
Assign Reviewers from Changed Files
Write a Java program that helps automatically assign a code reviewer after a pull request is opened. You are given: 1. A local Git repository path. 2....
Determine Whether a Word Transformation Exists
Given a beginWord, an endWord, and a list of valid words wordList, determine whether it is possible to transform beginWord into endWord. Rules: - Each...
Find Smallest Common Row Value
You are given a 2D integer matrix where each row is sorted in strictly increasing order. Return the smallest integer that appears in every row. If no ...
Implement Refactoring Assessment Features
You are given an existing Java project for a general refactoring assessment. The project already contains model classes, comments, and unit tests, but...
Implement toy-language types and generic substitution
Problem: Toy Language Type System (Printing + Generic Resolution) You are implementing a small type system for a custom “Toy Language”. Types can be: ...
Solve mixed coding tasks from interviews
Solve the following interview-style coding problems (you may choose any programming language unless specified). Provide correct logic and handle edge ...
Solve stock profit and vertical tree traversal
You have a 60-minute coding interview with two algorithm questions: 1) Max profit from one stock trade - Input: an integer array prices, where prices[...
Design refundable transaction ledger and prioritization rules
Design and implement a transaction ledger that ingests a stream of records where each record is either a payment or a refund. Each payment has {id, us...
Find maximum island sum and required indices
You are given an m×n integer grid where 0 denotes water and any non-zero value denotes land. Two land cells are connected if they share an edge (4-dir...
Solve string and hashmap interview tasks
Coding questions (solve both) 1) First non-repeating character Given a string s, return the first character that appears exactly once in the string. -...