Intern Coding & Algorithms Interview Questions
Intern coding rounds are where fundamentals win. These coding and algorithms questions were reported from internship interviews, so they cluster around the topics interns actually face: arrays and strings, hash maps, two pointers, stacks and queues, recursion, and the occasional easy graph or tree traversal. The difficulty band is mostly easy-to-medium, and interviewers care as much about clear communication and a working solution as they do about the perfect optimization. If you're prepping for a software engineering internship, this is the focused set to drill — real questions at the real difficulty, most with a step-by-step solution so you can check your reasoning.

"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."
Last Truck to Leave a One-Dimensional Lane
Last Truck to Leave a One-Dimensional Lane Implement last_exit_time(lane_length, positions, velocities). Distinct trucks start at integer positions st...
Kth Employee Reached in an Ordered Hierarchy
Kth Employee Reached in an Ordered Hierarchy Implement kth_recipients(boss, queries). Employees are numbered 0 through n - 1. boss[0] == -1; for every...
Minimum Delivery Cost Between Cities
Minimum Delivery Cost Between Cities Implement minimum_delivery_costs(delivery_charges, queries). There are n cities indexed from 0 to n - 1, and city...
Return all valid word-break sentences
Given a string s and a dictionary of strings wordDict, insert spaces into s to form a sentence such that every token is in wordDict. Return all possib...
Check Root-To-Leaf Target Sums In A Binary Tree
You are given the root of a binary tree and an integer target. Each node contains an integer value. Return true if there is at least one path from the...
Solve three algorithmic OA problems
This is an online assessment (Codility-style, 150 minutes) consisting of three independent coding problems. Solve each one separately; they do not sha...
Linear Interpolator with Extrapolation
Linear Interpolator with Extrapolation You are given n knot points in a 2D coordinate system, where knots[i] = [x_i, y_i]. All x-coordinates are disti...
Solve Bracket Matching and Tree Width
This composite question evaluates proficiency with core data structures and algorithmic reasoning, covering string-based bracket validation (sequence ...
Replace Delimited Tokens in a String
This question evaluates string parsing, token recognition, and dictionary lookup competencies for robust text replacement, including handling malforme...
Solve four coding problems
The interview included four independent coding problems: 1. Longest all-healthy service streak You are given the daily health-check results for mul...
Find Minimum Rooms Needed
This question evaluates understanding of interval scheduling and conflict detection in time ranges, along with algorithmic reasoning and appropriate d...
Implement four DS coding tasks
You are completing a CodeSignal-style assessment (Python or R). Implement solutions for the following four independent questions. 1) Two-sample z-test...
Design Tic-Tac-Toe and QPS data structures
You are given two independent coding problems that focus on data structure and API design. --- Problem 1: Generalized Tic-Tac-Toe Game with Simple AI ...
Simulate bubble elimination and maximize common prefix
You are given two independent coding tasks (as in a multi-question OA). Solve each. Task A — Grid “bubble/candy” elimination simulation You are given ...
Minimize reduction cost and validate equal-sum pairs
This two-part question evaluates array manipulation and algorithmic problem-solving skills: the first task focuses on optimizing cumulative operation ...
Implement a News Publishing System with Topic Subscriptions and Delivery Limits
You are building the core delivery engine for a news publishing service. The service continuously receives news items, stores them, and — whenever a p...
Bottom-Insertion Connect Game: Detect the First k-in-a-Row Winner
Two players, B and R, take turns dropping pieces onto a board that covers the upper half-plane of an integer grid. Columns are indexed by arbitrary in...
Count Connected Components in an Undirected Graph
This question evaluates understanding of graph connectivity and cycle detection, measuring competency in reasoning about connected components and the ...
Optimize flight and cargo bookings for profit
OptiCargo: make the booking algorithm profitable You are given two streams/lists: - Flights you may attempt to book. Each flight has: - flight_id ...
Implement Sparse Matrix Operations
This question evaluates proficiency in sparse linear algebra, efficient algorithms, and data-structure design for numerical and machine learning workl...