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."
Implement a traffic-light UI with JS
Frontend Coding: Traffic Light Build a simple traffic light component using HTML + CSS + JavaScript. Requirements - Render a vertical traffic light wi...
Find earliest time all riders become connected
You are given activity logs for a ride-sharing app. Each log entry indicates that two riders shared a ride at a certain time, which creates an undirec...
Validate JSON against a protobuf-like schema
You are given a simplified protobuf-like schema definition and a JSON value. Determine whether the JSON conforms to the schema. Schema model - A schem...
Maximize minimum value after k decrements
You are given an integer array vulnerabilities of length n, where vulnerabilities[i] is the initial security score of server i. You must perform exact...
Design cache with least-recently-used eviction
You are asked to design an in-memory key–value cache that supports a least-recently-used (LRU) eviction policy. The cache must support the following o...
Solve palindrome-check and vertical-order traversal
You are asked to solve two separate coding questions. You do not need to run code; be prepared to explain your approach and walk through examples. Que...
Solve common data-structure and puzzle problems
Solve common data-structure and puzzle problems Solve the following independent problems (language of your choice; assume typical 32/64-bit constraint...
Count Numbers With Odd Zeros
Given an array a of non-negative integers, count how many elements contain an odd number of digit '0' in their decimal representation. Notes: - Treat ...
Validate a 9×9 grid under constraints
Problem You are given a 9×9 grid representing a partially filled puzzle. Each cell contains either: - a digit character '1'–'9', or - the character '....
Implement ad matching and delivery routing
Implement ad matching and delivery routing Part A: Implement a data structure for an ad-matching service that supports add(campaign), remove(campaign)...
Compute minimal cost to merge numbers
Compute minimal cost to merge numbers Given an array of positive integers, you may repeatedly perform the following operation until one number remains...
Compute build order from dependencies
Compute build order from dependencies You are given a directed graph represented as a mapping where each key X maps to a list of tasks that depend on ...
Merge two sorted arrays in-place
Merge two sorted arrays in-place You are given two sorted integer arrays nums1 and nums2, both sorted in non-decreasing order. - nums1 has length m + ...
Decide string transform with directional tokens and walls
Decide string transform with directional tokens and walls You are given two equal-length strings start and target of length n, each consisting only of...
Implement uniform sampling in squares
Implement uniform sampling in squares Implement a class Square representing an axis-aligned square on the 2D plane that supports sampling a uniformly ...
Find longest substring without repeating characters
Problem Given a string s, return the length of the longest contiguous substring that contains no repeated characters. Input - s: a string (may contain...
Determine Threshold-Constrained Connectivity
You are given an undirected weighted graph with n nodes labeled from 0 to n - 1 and a list of edges, where each edge is represented as (u, v, w) meani...
Find safe travel intervals between planet influences
You are planning a space route along a one-dimensional line (the x-axis). You are given a list of planets. Each planet is represented by an integer pa...
Design a Driver Payroll System
Design an in-memory payroll system for a food delivery company. Each driver has a unique driver_id and a fixed hourly_rate set when the driver is regi...
Implement matrix multiplication and fast exponentiation
1) - A n × m - B m × p C = A × Bn × p - - - MOD MOD 2) Exponentiation by Squaring x k MOD - x^k - x^k mod MOD - O(log k) - k = 0x = 0 3) ...