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 Banking System
Design and implement an in-memory banking system. All operations are processed in non-decreasing timestamp order. Account identifiers are strings. Mon...
Optimize bread-factory pipeline for max profit
You can assemble a production line by choosing modules of three types: Mixers, Ovens, Packers. Each module i has (type, build_cost_i, throughput_i uni...
Match people to questions using tags and priorities
This question evaluates competencies in bipartite matching and combinatorial optimization, along with practical data-structure design for scalable tag...
Fetch, group, and print paginated activities
Fetch, group, and print paginated activities Given a paginated API that returns (totalCount, activities[]) for a requested page, implement code that i...
Solve Array Distance and Wiki Navigation
You are given two independent coding tasks. For each task, clarify edge cases, implement the function, and write meaningful test cases. Task 1: Minimu...
Maximize Chef Assignment Profit
You are given three integer arrays: - chefSkill[i]: the skill level of the i-th chef. - dishDifficulty[j]: the difficulty level required to cook the j...
Make Every Password Block a Palindrome
Implement minimum_palindromic_block_changes(password, k). The password length is a multiple of k. Partition it into consecutive blocks of exactly k ch...
Implement image carousel with comments and upvotes
Implement an image carousel that supports: 1) cycling forward/backward and autoplay with a configurable interval; 2) a per-image comment thread with c...
Merge Three Sorted Arrays Without Duplicates
Merge Three Sorted Arrays Without Duplicates You are given three integer arrays sorted in nondecreasing order. Merge them into one sorted array that c...
Find Duplicate Files
Implement a file deduplication tool. You are given a root directory containing many files. Return groups of duplicate files. Two files are duplicates ...
Measure Meeting Coverage and Required Rooms
Measure Meeting Coverage and Required Rooms Given meeting intervals, compute both the total amount of time spent in at least one meeting and the minim...
Quadtree for 2D Geospatial Points
Quadtree for 2D Geospatial Points Design and implement a point quadtree that stores geographic locations on a 2D plane and supports efficient axis-ali...
Group Anagrams
Group Anagrams Given an array of strings words, group together all strings that are anagrams of one another and return the groups. Two strings are ana...
Write queries for follows and bookings
This question evaluates the ability to manipulate temporal event logs, enforce bidirectional relational integrity, and implement efficient graph and i...
Design out-of-order windowed stream processor
Design out-of-order windowed stream processor Design an event processor for an unbounded, infinite stream of events. Each event has the fields id, tim...
Implement a multithreaded task executor with semaphores
Design and implement a thread-safe TaskExecutor that limits concurrent work using a semaphore-like mechanism. You are given an interface similar to: -...
Convert stack samples to trace events
Question Implement convertToTrace(samples) that, given a chronologically ordered vector of stack samples (each sample contains a timestamp and a call-...
Build and Validate a Binary Tree from Parent-Child Pairs
Build and Validate a Binary Tree from Parent-Child Pairs You are given a single input string that is supposed to describe a binary tree as a sequence ...

Implement a Task Processor
This question evaluates understanding of priority-based scheduling and dependency resolution, focusing on data structures and graph-ordering concepts ...
Write SQL for car rental utilization by city
SQL / Data Query Prompt (Car Rental) You are given four tables: user - user_id location - location_id - city car - car_id - car_size (e.g., compact, m...