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."
Implement Regular Expression Matching
Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...
Unify Stock-Trading Profit Variants
Unify Stock-Trading Profit Variants Given daily stock prices, return the maximum profit when you may complete at most max_transactions buy-then-sell t...
Return All Nodes Reachable from a Starting Vertex
Given directed edges and a starting vertex, return all vertices reachable from the start, including the start. The graph may contain cycles. Implement...
Count Length-3 Chat Substrings with a Vowel
You are developing an automatic moderation system for a chat application that detects simple linguistic patterns. Given a string chatMessage, count ho...
Find a Valid Task Execution Order with Dependencies
You are building the task scheduler for a CI/build system. There are n build tasks labeled from 0 to n - 1. Some tasks cannot start until certain othe...
Count the Ways to Decode a Numeric Cipher
A substitution cipher maps each uppercase English letter to a number: 'A' → 1, 'B' → 2, …, 'Z' → 26. To encode a word, every letter is replaced by its...
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...
Smallest Covering Window in a String
Smallest Covering Window in a String You are given two strings, source and target. Return the shortest contiguous substring of source that contains ev...
Sort a String of Clothing Sizes
Sort a string containing only S, M, and L into size order in linear time. Extend the discussion to custom token orderings, unknown-size behavior, empt...
Character Frequency Count in a String
This question tests a candidate's practical ability to traverse strings and use hash-based data structures for frequency counting while preserving ins...
Deep-Copy a Linear Linked List
Deep-copy a finite singly linked list represented by nested Python lists. Preserve values and structure while allocating every returned node independe...
Reverse a Singly Linked List
Reverse a finite singly linked list represented by nested two-item Python lists. Reuse the existing node objects without allocating replacements, and ...
Find the Best Word for a Query Suffix
Practice a Bytedance coding interview problem focused on find the best word for a query suffix. The prompt emphasizes edge cases, clean implementation...
Find Conflicting Events
This question evaluates algorithmic problem-solving in coding and algorithms, focusing on grouping, sorting, and sliding-window techniques applied to ...
Count Clusters of 2D Points Within a Radius
This question tests graph traversal skills, specifically identifying connected components among a set of 2D points using distance-based adjacency. It ...
Minimize Cost for Feature-Capable Models
This question evaluates algorithmic problem-solving and combinatorial optimization skills related to selecting cost-minimal subsets that satisfy dual ...
Determine Whether an Undirected Graph Is 3-Colorable
Determine whether a possibly disconnected undirected graph with up to 20 vertices can be colored using at most three colors so that adjacent vertices ...
Spreadsheet Formula Engine with Cycle Detection
This question evaluates a candidate's ability to design a stateful data structure that models dependency relationships and lazily propagates updates, ...
Optimal Commute: Nearest Transit Distance in a City Grid
This question evaluates a candidate's ability to apply multi-source breadth-first search to a grid-based shortest-path problem. It tests graph travers...