Glean Interview Questions
Practice 19 real interview questions from Glean. Covers Coding & Algorithms, Analytics & Experimentation, Software Engineering Fundamentals, Data Manipulation (SQL/Python). For roles including Software Engineer, Machine Learning Engineer, Data Scientist.

"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."
Restore an Array with One Displaced Element
Restore an Array with One Displaced Element An integer array was originally sorted in nondecreasing order. It was then changed by removing at most one...
Design Employee-to-Employee Distance
Design an employee-to-employee distance system for a large company. The system takes two employees as input and returns a meaningful "distance" (or, e...
Implement a Byte Pair Encoding (BPE) Tokenizer
This question evaluates practical understanding of tokenization algorithms and string processing, specifically the iterative merge-based approach used...
Robust Selenium Code to Extract Text from Two Elements
This question evaluates practical knowledge of browser test automation, specifically writing reliable Selenium code that reads text from web elements ...
How Would You Test a System That Counts the Leaves on a Tree?
This question evaluates a candidate's ability to design a test strategy for an ambiguous, open-ended system rather than write code. It tests skills in...
Prioritizing QA Work Under Deadline Pressure
This question evaluates a candidate's ability to prioritize testing work and manage quality risk when time is insufficient to cover everything before ...
What are sum expectation and variance?
Let random variables X and Y have finite means and variances. How do you compute: 1. The expectation of X + Y 2. The variance of X + Y Your answer sho...
Find the Kth Largest in Two Sorted Arrays
You are given two arrays sorted in ascending order and an integer k. Return the kth largest element among all elements from both arrays combined. Coun...
How to measure product success?
You are asked to evaluate whether a product or newly launched feature is successful. Describe how you would define success from a data science and pro...
Reason about MAU error after user ID rehash
A product tracks activity using user_id from login events, and computes MAU as: - MAU (L30D) on date d = number of distinct user_id with at least one ...
Implement 2048 tilt move
Problem: Implement a 2048 “tilt” (move) operation You are given a 4×4 board for the game 2048. Each cell contains either 0 (empty) or a power of two (...
Find Earliest Train Route
You are given a discrete train timetable and need to find a valid route through the train network. Each train has an itinerary represented as a sequen...
Simulate document assignment to indexers
You are given a system with m parallel indexers (workers), numbered from 0 to m-1. Documents arrive over time and are placed in a processing queue. Ea...
Return Top Department Suggestions
This question evaluates proficiency in prefix-based search and top-k ranking, familiarity with in-memory data structures and preprocessing strategies,...
Implement Rate-Limited Wikipedia Crawler
Implement a rate-limited Wikipedia crawler. You may use an AI coding assistant during the interview, such as Cursor or Claude Code. You are expected t...
Search Words in a Character Grid
You are given a 2D grid board of lowercase English letters with m rows and n columns. A word can be constructed from letters of sequentially adjacent ...
Implement 2048 Game Logic
Implement the core movement logic for the 2048 game. You are given an n x n integer board where 0 represents an empty cell and every nonzero value rep...
Compute DAU and rolling MAU with zero days
You have two tables in PostgreSQL: Tables users - user_id (STRING / INT, PK) - signup_date (DATE) logins - user_id (STRING / INT, FK → users.user_id) ...
Determine Reachability in Train Schedule
You are given a train schedule represented as a list of train routes. Each route is a list of station names, where the element at index t is the stati...