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."
Determine whether a word exists in a letter grid
Given an m x n grid of characters board and a string word, determine whether word can be constructed from sequentially adjacent cells. Rules: - Adjace...
Group strings that are anagrams
Problem: Group anagrams Given an array of strings strs, group the strings that are anagrams of each other. Two strings are anagrams if they contain th...
Solve string transform and min-move sorting
Problem 1: "Goat Latin"-style string transformation You are given a sentence s consisting of words separated by single spaces. Transform it into a new...
Solve order-statistics and XOR-triplet problems
You are given two separate algorithmic problems. Problem 1: Count smaller elements to the right Given an integer array nums of length n, for each inde...
Solve three string/stack/backtracking problems
You are given three independent coding tasks (solve each one). Unless otherwise stated, implement a function with the described input/output. Problem ...
Minimize total distance to a store
Question 1: Choose a CVS location to minimize total distance You are given an M x N grid grid containing only 0 and 1. - grid[r][c] = 1 means there is...
Maximize sum with no adjacent tree nodes
Given the root of a binary tree where each node contains an integer value (can be 0 or positive), choose a subset of nodes such that no selected node ...
Compute unique-substring length and first unique index
Solve the following two string problems. Problem 1 — Longest substring with all distinct characters Given a string s, find the length of the longest c...
Maximize the minimum value along a grid path
You are given an m x n integer matrix A. You start at the top-left cell (0,0) and want to reach the bottom-right cell (m-1,n-1) by moving only in 4 di...
Merge overlapping intervals
Given an array of closed intervals intervals, where each interval is [start, end] and start <= end, merge all overlapping intervals and return an arra...
Detect overlap of two linked lists with cycles
You are given the heads of two singly linked lists headA and headB. Each list may be: - A standard acyclic linked list, or - A cyclic linked list (con...
Join tables to map userId to name
Problem You are given three tables represented as 2D string arrays (each row is a record, no headers). You need to produce a mapping from userId → cus...
Implement a rate limiter at scale
Problem Design and implement a rate limiter that enforces request limits per key (e.g., per user ID or API key). Requirements - Implement allow(key, t...
Coordinate workers across two exclusive targets
You are given two exclusive resources (targets) labeled "A" and "B". You need to start N = 10 parallel workers (e.g., processes or threads), each of w...
Design KV store with sliding-window average QPS
Problem Design an in-memory key–value store that supports mutation operations and can report the average QPS (queries per second) over a recent time w...
Compute last-5-minute QPS in memory
Problem You are building a lightweight in-memory component that tracks the query load (QPS) of a service. Design a data structure with two operations:...
Choose optimal guesses for green-only Wordle
Problem You are playing a simplified 5-letter word guessing game. - There is a hidden secret word of length 5. - You have a dictionary of valid 5-lett...
Design Tic-Tac-Toe and QPS data structures
You are given two independent coding problems that focus on data structure and API design. --- Problem 1: Generalized Tic-Tac-Toe Game with Simple AI ...
Compute courier pay and implement load balancing
Problem 1: Compute courier (delivery driver) pay You are given a sequence of delivery-related events for a courier during a day. Your task is to compu...
Implement Parallel Image Processing
Build an image-processing utility in Python using the Pillow library. You are given a collection of image file paths and an output directory. For each...