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."
Implement String Encryption and Decryption
This question evaluates understanding of string encoding and mapping, including handling non-bijective character-to-code relationships and performing ...
Contrast processes and threads
What are the differences between processes and threads? Compare memory isolation, resource ownership, scheduling, context-switch cost, inter-process c...
Implement Minesweeper and Word Search
This multi-part prompt evaluates grid-based algorithmic skills, including randomized board construction with neighbor counting, straight-line pattern ...
Compute longest increasing subsequence length
This question evaluates understanding of sequence analysis and algorithmic problem solving, assessing competency with subsequences, reasoning about co...
Solve three coding tasks: binary search, tree path, subarray
Solve three coding tasks: binary search, tree path, subarray Solve the following coding tasks: 1) In a sorted array, every value appears exactly twice...
Implement core graph algorithms for graphics
Implement core graph algorithms for graphics Given a scene or dependency graph, implement topological sort, BFS/DFS, and shortest path (Dijkstra). Dis...
Explain HashMap internals and collisions
Explain HashMap internals and collisions In Java, describe the underlying data structures used by HashMap (e.g., array of buckets, linked lists vs tre...
Implement an Integer Hash Map
Design a data structure MyHashMap that stores integer keys and integer values without using any built-in hash table library. Implement the following o...
Design transactional in-memory key-value store
Problem Design and implement an in-memory key–value store that supports basic operations plus transactions. Core API Implement the following operation...
Validate a Binary Search Tree
Validate a Binary Search Tree Problem Given a binary tree, return whether it is a valid binary search tree. For every node, every value in its left su...
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...
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...
Remove Global Duplicates While Preserving Order
Remove Global Duplicates While Preserving Order Implement global_unique(values). values is a list of strings. Return a new list containing the first o...
Match logs to prior queries
Question You receive a stream of strings, each beginning with either "Q:" (query) or "L:" (log). A query consists of space-separated words and should ...
Find possible robot positions
This question evaluates a candidate's ability to reason about grid traversal, boundary conditions, directional visibility counting, and constraint-bas...
Design a Recency-Eviction Cache
This question evaluates proficiency with data structures and algorithmic design for implementing a fixed-capacity key-value cache that enforces recenc...
Implement Journey Counter and Speeder Detector
This question evaluates parsing, time-series processing, and algorithmic reasoning for detecting complete journeys and speed violations from structure...
Determine Whether a Word Exists in a Graph
This question evaluates proficiency in graph algorithms and backtracking techniques, including traversal strategies, cycle avoidance, and state manage...
Generate constrained NFT metadata
Generate constrained NFT metadata Given a set of trait types (e.g., background, eyes, hat), each with a list of allowed values, and a target count N, ...