Software Engineer Coding & Algorithms Interview Questions
Practice 2,743 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 Three Coding Problems
This set of problems evaluates competencies in streaming data handling and incremental aggregation, time-dependent grid traversal and reachability und...
Implement encryption and constant-time random set
This question evaluates understanding of symmetric shared-secret string transformation and the design of a randomized set supporting expected O(1) ope...
Merge two sorted arrays in-place
This question evaluates array-manipulation and in-place algorithm skills, including understanding of sorted-data merging, index/pointer management, an...
Implement RLE and bit-packing compression
You are asked to implement two related compression/decompression schemes: Run-Length Encoding (RLE) and bit-packing. --- Part 1 — Run-Length Encoding ...
Compute the Nth Recency Value
Given an integer n >= 1, define a sequence a as follows: - a[0] = 0 - For each i >= 1: - If a[i - 1] has appeared earlier in the sequence, meaning t...
Populate next pointers in a perfect binary tree
You are given a perfect binary tree (all leaves at the same level; every internal node has two children). Each node has fields left, right, and next. ...
Solve maze reachability and two follow-ups
This set of tasks evaluates graph and state-space search with constrained movement (maze rolling ball), tree algorithms and recursion for computing di...
Detect and remove matched words in a char stream
This question evaluates understanding of online stream processing, substring matching, and the use of efficient data structures and algorithms for rea...
Can You Reach the Last Index?
This question evaluates a candidate's understanding of array traversal and reachability in sequences of jumps, along with the ability to reason about ...
Implement time-versioned KV store with restore
Design and implement an in-memory key–value store where every operation is associated with a timestamp (monotonically increasing integer). The store m...
Find minimum racks for 2D bin packing
You are given N machines. Machine i requires two types of resources: (x_i, y_i). Each rack has capacity (A, B) for the two resources, and a machine mu...
Find final URL by crawling until “congrats”
You are given a starting HTTP URL. Implement a function that repeatedly calls URLs returned by previous responses until you reach a response that indi...
Compute minimum semesters to finish courses
This question evaluates graph theory and scheduling competencies, including dependency resolution, cycle detection in directed graphs, and capacity-co...
Implement popup and redirect in JavaScript
You are working in a browser environment and must use vanilla JavaScript only (no external libraries). Task Implement a function showPopupAndRedirect(...
Find Each Cell's Nearest Source
Given an m x n grid containing 1 for source cells and 0 for regular cells, compute for every cell the shortest 4-directional distance to any source ce...
Solve palindrome and missing-number variants
You are asked to solve two coding problems and analyze the time and space complexity of each. 1. Palindrome check Given a string s, determine whe...
Compute 5-minute rolling average load
This question evaluates understanding of sliding-window aggregation and efficient data-structure design for time-series event streams, focusing on com...
Compute interval mode, BST range sum, exclusive time
You are given several independent coding tasks. A) Most frequent integer covered by intervals You are given an integer range [-M, M] and a list of inc...
Merge Nested Dictionaries Iteratively
Given a list of Python dictionaries, merge them into a single dictionary without using recursion. Rules: - Process the dictionaries from left to right...
Implement a Datacenter Request Router
This question evaluates command parsing, stateful data structure management, input validation, geospatial computation using the Haversine formula, det...