Software Engineer Coding & Algorithms Interview Questions
Practice 2,712 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."
Cluster 3D Points by a Distance Threshold
Implement cluster_points_3d(points, D). Create an undirected edge between two distinct 3D points when their Euclidean distance is strictly less than D...
Find Largest Adjacent Stock Price Change
This question evaluates algorithmic problem-solving and data-manipulation skills, specifically date-based sorting, computing signed versus absolute ad...
Reverse a Singly Linked List
Reverse a finite singly linked list represented by nested two-item Python lists. Reuse the existing node objects without allocating replacements, and ...
Count Distinct PII in Underwriting Events
Count Distinct PII in Underwriting Events An event stream contains underwriting and fraud_flag events. Count the distinct nonempty personally identifi...
Return the Lexicographically Smallest Two-Sum Index Pair
Return the Lexicographically Smallest Two-Sum Index Pair Problem Implement twoSumSmallestPair(nums, target) -> pair. Return the lexicographically smal...
Count Candies from Unlockable Boxes
This question evaluates a candidate's understanding of graph traversal, state management, and object-oriented design to determine reachability and res...
Reverse Nodes in Groups of K
This question evaluates a candidate's ability to manipulate linked list pointers in place, handling in-group reversal while preserving overall structu...
Solve three algorithmic OA tasks
Solve three algorithmic OA tasks Task 1 (Odd-frequency string): Given an integer N in [1..200000], write an algorithm that returns any length-N string...
Simulate rover movement on a grid
You are building a rover navigation simulator. The exercise is incremental: you implement a single rover on a 2D grid, then extend the design to many ...
Compute the Diameter of an Undirected Tree
Compute the Diameter of an Undirected Tree You are given an undirected tree with nodes numbered from 0 through n - 1. The diameter is the number of ed...
Generate a Matrix in Spiral Order
This question evaluates a candidate's ability to simulate array traversal and manage boundary conditions when filling a matrix in a specific geometric...
Implement four coding challenges
You are asked to solve the following four independent coding problems. --- 1) Block Placement Simulator (Tetris-like) You have an empty n x m grid (ro...
Troubleshoot CPU, latency, and DNS issues
A) A Linux server’s CPU usage suddenly spikes. What immediate checks and commands would you run (e.g., top/htop, pidstat, perf, iostat), how would you...
Detect Currency Arbitrage After a Cycle Fee
Detect Currency Arbitrage After a Cycle Fee You are given a matrix of positive currency exchange rates, where rates[i][j] units of currency j are rece...
Count Bounded Buy-and-Sell Sequences
Count Bounded Buy-and-Sell Sequences You start with k shares. On each transaction day, you either buy one share or sell one share, but holdings may ne...
Order Classes by Prerequisites with Recursive DFS
Order Classes by Prerequisites with Recursive DFS Implement class_order(classes, prerequisites) using recursive depth-first search. classes contains d...
Implement Stable Softmax
This question evaluates understanding of numerical stability, floating-point arithmetic, normalization, and probability distributions when computing s...
Find Unique Target-Sum Pairs
This question evaluates array-processing skills, correctness in handling duplicate values, and the ability to identify unique value pairs whose sums m...
Evaluate Symbol Expressions
This question evaluates the ability to parse and evaluate arithmetic expressions with symbol references, perform recursive dependency resolution, and ...
Find shared courses between student pairs
This problem set evaluates data structures and algorithms competencies, covering mapping and set intersection for pairwise course overlap, permutation...