Coding & Algorithms Interview Questions
Practice 3,469 real Coding & Algorithms interview questions for 2026. Covers companies like Meta, Amazon, Google, Uber, and Microsoft. Real questions from actual interviews with detailed solutions — ideal for focused interview preparation. Coding & Algorithms interview questions are the single most common technical gate for software engineering roles and are used to evaluate problem framing, algorithm selection, complexity trade-offs, correctness, edge-case reasoning, and clear communication under time pressure. Expect this category to appear in early technical screens and repeatedly across onsite loops at companies that weight it heavily (notably Meta, Google, and Amazon). Interviews will test arrays and strings, trees and graphs, dynamic programming, hashing and two‑pointer techniques, and the candidate’s ability to test and optimize code in a shared editor. Prepare with timed mock interviews, practice in the same editor you’ll use live, and build a progressive schedule that moves from fundamentals to medium/hard problems; typical candidates invest several weeks to a few months of focused practice depending on seniority and target company.

"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 Constant-Time Random Pool
This question evaluates a candidate's ability to design and implement an efficient data structure supporting average O(1) add, remove, and uniform ran...
Implement Cache Eviction And Seat Assignment
This question evaluates understanding of data structure design and algorithmic reasoning, covering cache eviction policies (least-recently-used) and s...
Solve Two Algorithm Challenges
These two problems evaluate algorithmic skills in array optimization and graph pathfinding: the first focuses on selecting three ordered, non-overlapp...
Simulate In-Place Cellular State Updates
This question evaluates a candidate's ability to implement grid-based state transitions and manage in-place updates with strict space constraints, ass...
Write SQL Data Transformation Queries
This question evaluates proficiency in SQL data transformation and aggregation, testing competencies such as monthly-reset running totals, hierarchica...
Solve movie ratings, array, release scheduler
Question This is a three-part coding screen used for a Data Scientist role at DRW. You will work through three independent array/sequence problems, ea...
Perform matrix Candy Crush elimination
Question Implement a function that, given an m × n integer matrix representing colored blocks (same integers = same color), performs one round of "Can...
Marketplace Data Store: Order Matching and End-of-Day Reconciliation
Marketplace Data Store: Order Matching and End-of-Day Reconciliation You are building the core of a marketplace where sellers list individual units of...
Implement deposit, withdraw, and transfer in a class
Problem Implement a class AccountService that supports basic money operations on accounts. Operations - deposit(accountId, amount) - withdraw(accountI...
Find balanced subarray and increasing tree path
You are given two coding problems. Problem 1: Longest balanced subarray (0/1) Given an integer array nums of length n where each element is either 0 o...
Find possible robot positions
This question evaluates a candidate's ability to reason about grid traversal, boundary conditions, directional visibility counting, and constraint-bas...
Sort a Nearly Sorted Array
This question evaluates algorithm design and analysis skills, focusing on handling nearly-sorted arrays and reasoning about time and space complexity ...
Implement a Web Crawler with BFS and DFS
Implement a simple web crawler in Python. You are given: - A starting URL. - A function get_links(url) -> list[str] that returns all outgoing links fr...
Generate Color Feedback for a Word Guess
Generate Color Feedback for a Word Guess Given an answer string and a guess of the same length, produce one color for each guessed character: - "green...
Format Words into Fixed-Width Lines
This question evaluates proficiency in string manipulation, greedy line-packing algorithms, and attention to implementation details such as spacing di...
Implement a Contiguous Memory Allocator with Primitive Lists
Implement a Contiguous Memory Allocator with Primitive Lists Simulate an allocator over the contiguous address range [0, capacity), initially one free...
Find index with positive suffix sums
This question evaluates array manipulation and algorithmic problem-solving skills, focusing on reasoning about cumulative (suffix) sums and time-compl...
Find missing rank in a straight
You are given a list of 4 distinct characters representing card ranks from a 5-card straight (5 consecutive ranks) with exactly one rank missing. Rank...
Design structure for bottom-K customers by revenue
This question evaluates data structure design and algorithmic complexity for dynamic order-statistics and update operations, focusing on maintaining c...
Compute Range Sum Quickly
This question evaluates a candidate's understanding of range-sum queries, array preprocessing techniques and algorithmic complexity for answering mult...