Software Engineer Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.

"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."
Solve 12 coding interview problems
Below are multiple independent coding problems. --- Problem 1: Reduce an integer to 0 with \(\pm 2^i\) You are given a positive integer \(n\). In one ...
Implement an in-memory DB with TTL backup/restore
Problem Design an in-memory database that stores values in a nested structure: - key (string) → field (string) → value (string) - Each (key, field) en...
Rebalance shard ranges under overlap limit
You maintain a set of data shards. Each shard owns an inclusive integer key range [start, end]. `python class Shard: id: str start: int en...
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 follow graph with snapshots
Problem You are building an in-memory social network relationship store that supports time-travel queries. Users are identified by integers. A directe...
Design a restaurant waitlist system
You are implementing the waitlist system for a restaurant. Parties arrive over time, can cancel, and get seated when a table becomes available. Rules ...
Design stack with O(1) minimum query
Design a stack-like data structure that supports the following operations, each in O(1) time: - push(x): push integer x onto the stack - pop(): remove...
Implement type AST and infer generics
Toy language type system: AST + generic inference You are implementing a tiny type system for a toy language with: - Primitive types: char, int, float...
Min deletions to avoid overlap in first k
You are given two integer arrays list1 and list2 and an integer k. You may delete elements from list2 (deletions can be at any positions). The relativ...
Implement an in-memory SQL-like table
Problem Implement a simple in-memory database for one table. All values are strings. Each row is identified by a rowKey (string). Each row contains co...
Implement credit ledger with out-of-order timestamps
Problem You are implementing a GPU credit ledger that supports adding credits, charging credits, and querying balances. Requests can arrive in any tim...
Solve sliding-window and disjoint-string-pairs tasks
Task A (Sliding Window) Given a string s, find the length of the longest contiguous substring that contains no repeated characters. - Input: a string ...
Implement an in-memory database with TTL and backup
In-Memory Database (Levels 1–4: TTL and Backup/Restore) Implement an in-memory database that stores records identified by a string key. Each record co...
Compute minimum number of rooms needed
Problem You are given a list of meetings, each with a start time and end time. A single room can host only one meeting at a time. Two meetings overlap...
Implement topological sort and tree boundary traversal
You are given two separate coding tasks. Problem A — Order courses with prerequisites You have n courses labeled 0..n-1 and a list of prerequisite pai...
Minimize run-length encoded length with deletions
Problem You are given a string s (uppercase English letters) and an integer k. You may delete at most k characters from s. After deletions, you compre...
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: ...
Decode an encoded string
Implement a decoder for an encoded string where repetition is expressed with a number followed by a bracketed substring. Rules: - A pattern k[substrin...
Compute org height and minimal CEO promotions
You are given an organization chart with n employees labeled 1..n. Employee 1 is the CEO (root). The reporting relationships are given as two integer ...
Generate NFT metadata and ensure uniqueness
You are implementing an NFT metadata generator. Each NFT is defined by selecting exactly one trait value from each trait category. You must generate a...