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 tree view and parentheses cleanup
Solve the following two algorithm problems. 1. Right-side view of a binary tree Given the root of a binary tree, return the values of the nodes that w...
Design stack with O(1) minimum query
This question evaluates understanding of stack-based data structures, constant-time operation constraints, and handling edge cases such as empty queri...
Find minimum subarray length with k distinct integers
Given an integer array arr and an integer k, find the minimum length of a contiguous subarray that contains exactly k distinct integer values. Return ...
Solve scheduling and collision problems
This question evaluates a candidate's understanding of algorithm design and data structures for resource allocation and dynamic interaction problems, ...
Find shortest jumps in circular array
You are given a circular array arr of length n. From index i, you may jump exactly arr[i] steps either to the left or to the right (wrapping around th...
Implement a reference-counted smart pointer
Implement a minimal C++ reference-counted smart pointer similar to std::shared_ptr. Requirements: - Create a class template SharedPtr<T> that manages ...
Normalize a file path
Given an absolute Unix-style file path as a string, return its canonical normalized form. Rules: - The input always starts with /. - A single . means ...
Solve 15 common interview problems
Below are fifteen independent coding problems commonly discussed in software engineering interviews. For each one, write an efficient algorithm and be...
Maximize protected population with one-step guard shifts
There are n cities in a line (1-indexed). You are given: - population[1..n]: population of each city - unit: a binary string of length n, where unit[i...
Maximize weighted subsequence pairs with wildcards
You are given a string s of length n consisting only of characters '0', '1', and '!'. Each '!' can be replaced by either '0' or '1'. For the final bin...
Solve Search Speed and String Product
You are asked to solve two coding problems. Problem 1: Find the Minimum Constant Processing Speed You are given an array piles, where piles[i] is the ...
Find Feature Activation Order
This question evaluates graph-algorithms and dependency-resolution skills, including reasoning about prerequisite relationships, ordering constraints,...
Solve four OA coding problems
This set of four problems evaluates core algorithmic competencies including array manipulation and counting in sorted arrays, resource-constrained opt...
Find Affected Services After Shutdown
You are given a set of services and their dependency relationships. The input is a hash map where each key is a service name, and the value is a list ...
Implement a thread-safe rate limiter
Design and implement a per-user API rate limiter. Requirements: - Method: boolean allow(String userId, long nowMillis) returns whether the request is ...
Compute minimum escape time in a grid
You are given a 2D floor plan grid. Each cell is one of: - . empty space (walkable) - # wall/blocked (not walkable) - P a person - E an exit A person ...
Compute Maximum Area Under Adjacent Bars
You are given an array heights of n non-negative integers. Each value represents the height of a vertical bar of width 1, and the bars are placed next...
Find Top Hashtags
You are given two arrays of length n: - tweets[i]: the content of the i-th tweet as a string - timestamps[i]: the publish time of the i-th tweet as an...
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...
Build a Tic-Tac-Toe App
Implement a simple Tic-Tac-Toe mobile app that can be completed in a 45-minute coding interview. Requirements: - Display a 3x3 board. - Support two lo...