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."
Evaluate an Arithmetic Expression
Evaluate an Arithmetic Expression Implement a function that evaluates a valid arithmetic expression containing non-negative integers, the binary opera...
Determine Whether a Binary Tree Is a Valid BST
Determine Whether a Binary Tree Is a Valid BST Problem Given a binary tree, determine whether the entire tree satisfies the strict binary-search-tree ...
Search Words in a Character Grid
You are given a 2D grid board of lowercase English letters with m rows and n columns. A word can be constructed from letters of sequentially adjacent ...
Find Longest Activatable Server Streak
This question evaluates array algorithm skills, specifically recognition of sliding-window or two-pointer techniques and reasoning about time and spac...
Find Words in a Character Grid
Implement findWords(board, words) for a word-search game. You are given an m x n grid of lowercase English letters and a list of lowercase dictionary ...
Find the Extra Edge
You are given an undirected graph that started as a tree with n nodes labeled from 1 to n. One additional edge was then added between two different ex...
Minimize a String Using Allowed Swaps
You are given a string s of lowercase English letters and an array pairs, where each element pairs[i] = [a, b] means you may swap the characters at in...
Assign Ads to Browser Positions
Implement a function that assigns ads to browser positions for a single user. You are given: - positions: a list of browser position identifiers, such...
Find a Bounded Subarray and Largest Square
Implement the following two independent coding tasks. Task A: Longest bounded-range subarray Given an integer array nums and an integer limit, return ...
Compute Courier Delivery Pay
This question evaluates a candidate's ability to work with time-interval arithmetic, interval union/overlap reasoning, and aggregation of time-based p...
Implement Document Predicate APIs
Design a simple document service that stores text documents identified by filename. Implement these APIs: - InsertDoc(filename, content): store or ove...
Determine Exact Layover Booking
This question evaluates a candidate's competency in algorithmic problem solving, numerical precision handling, and combinatorial selection under exact...
Count Trips From Vehicle Logs
You are given a text log of vehicle events on a road system. Each log record contains: - license_plate: a string identifying a vehicle - event_type: o...
Find Shortest Queue with Few Calls
This question evaluates algorithm design and analysis skills, focusing on working with restricted data structure APIs and minimizing total operations ...
Solve Union-Find, Graph, and Stream Problems
Solve the following independent coding problems. 1. Merge Product Categories You are given a list of tuples (productA, productB). Each tuple means the...
Assign Pins to Shortest Columns
You are given a list of pins, where each pin has a height, and a fixed number of columns in a masonry-style layout. Process the pins in their original...
Build a Pivot Table Aggregator
Implement a function that builds a pivot table from a list of records. Each record contains a row_key, a column_key, and a numeric value. Requirements...
Solve Linked-List and Iterator Problems
You are asked to solve two coding problems. Problem 1: Detect shared nodes between possibly cyclic linked lists You are given the heads of two singly ...
Find Shortest Paths to Target Nodes
You are given a weighted directed graph representing distances between nodes. - There are n nodes labeled from 0 to n - 1. - edges[i] = [u, v, w] mean...
Solve two interview coding problems
The interview included two coding problems. Problem 1: Find valid robot locations in a grid You are given a 2D grid containing empty cells and obstacl...