Software Engineer Coding & Algorithms Interview Questions
Practice 2,712 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."
Assign Reviewers from Changed Files
Write a Java program that helps automatically assign a code reviewer after a pull request is opened. You are given: 1. A local Git repository path. 2....
Implement a Merkle-tree repo diff
You are given two snapshots of a source-code repository on disk, each represented by a root directory path. Implement a Merkle tree over the directory...
Course Prerequisite Feasibility
This question tests graph theory fundamentals, specifically cycle detection in directed graphs as modeled by dependency constraints. It evaluates prac...
Implement text wrapping, waitlist, and intervals
This question evaluates skills in string parsing and word-wrapping logic, data-structure design for FIFO queue management and deletions, and interval ...
Solve graph and linked list tasks
This question evaluates competencies in dependency graph modeling and reachability, shortest-path computation in weighted directed graphs, and space-e...
Implement frequency + distance top‑K queries
You will implement solutions for two coding interview questions. Question 1: Return the top‑K points by frequency (with distance tie‑break) You are gi...
Implement toy-language types and generic substitution
Problem: Toy Language Type System (Printing + Generic Resolution) You are implementing a small type system for a custom “Toy Language”. Types can be: ...
Simulate 2048 and pack board into uint64
Problem: 2048 move simulation + board compression You are implementing part of the 2048 game on a fixed 4×4 grid. Part A — Simulate a move Given a 4×4...
Assemble async stream reads into objects
This question evaluates a developer's skill in asynchronous stream I/O, buffer management, and binary parsing in C#, including correctly handling part...
Implement sequential and parallel URL requests
This question evaluates proficiency in HTTP networking, asynchronous and parallel programming (promises/futures), deduplication and order preservation...
Construct smallest number from I/D pattern
This question evaluates a candidate's ability to reason about permutation constraints, sequence ordering, and combinatorial construction under digit-u...
Implement streaming RLE and bit-packed codec
You are implementing a simple compression scheme for sequences of 32‑bit signed integers. The codec should support two encoding strategies: 1. Run‑Len...
Answer Repeated Lookup Queries Efficiently
Implement batched lookups over a sorted integer array, returning the first index of each queried value while preserving query order. Account for dupli...
In-Memory URL Shortener: Encode and Decode
This question evaluates a candidate's ability to design a class-based data structure with paired encode and decode operations that maintain a consiste...
Solve Several Algorithm Problems
This collection evaluates proficiency in string processing (longest palindromic substrings), graph connectivity and union‑find style concepts for 2D p...
Implement polynomial multiplication API in C
This question evaluates proficiency in C programming, API design, low-level data representation for polynomials, and algorithmic competence in perform...
Implement concurrent order-accept/pickup simulator
Concurrent restaurant order + pickup simulator Design and implement a thread-safe simulation for a restaurant that: - Receives incoming orders concurr...
Find the Longest Path of Equal-Valued Tree Nodes
Find the longest path of equal-valued nodes in a binary tree encoded as a breadth-first list. Clarify the ambiguity with strict BST terminology, then ...
Repeatedly Remove Adjacent Equal Characters
This question evaluates a candidate's ability to use a stack-based approach to repeatedly cancel out adjacent equal elements in a string. It tests und...
Solve Adjacent-Deletion and Sorted-Square Problems
Solve the following coding problems. Discuss the approach and complexity before implementation. Problem 1: Remove adjacent duplicate pairs Given a str...