Glean Interview Questions
We track 13 interview questions reported from Glean: 12 in Coding & Leetcode-style Questions, 1 in ML Fundamentals & Algorithms. They average 2.8/5 difficulty — medium for a working engineer — and every one was reported by someone who sat the loop, not written by us. The topics that come up most: arrays, matrix, grid, hashmap.
Practice these on the problems board →Question mix
- Coding & Leetcode-style Questions12
- ML Fundamentals & Algorithms1
Difficulty
- 2/5 — easy3
- 3/5 — medium9
- 4/5 — hard1
Asked for SWE (13), MLE (1), DataEng (1)
Topics Glean asks about
Reported Glean questions
Implement BPE Tokenizer
4/5Featured in technical screenings at Glean, this advanced machine learning fundamentals problem requires you to build a simplified subword tokenizer from scratch. You will implement training logic that iteratively merges frequent character pairs based on statistical frequency thresholds, alongside encoding and decoding capabilities for text transformation. This challenge thoroughly examines your proficiency in data manipulation and algorithmic efficiency within natural language processing pipelines. The full problem and model solution require a subscription.
ML Fundamentals & Algorithmsnlptokenizationbyte-pair-encodingMaximum Sum Path in a 2D Array
3/5In this Glean interview question, candidates must navigate a two-dimensional grid from the starting corner to the finish while maximizing the accumulated numerical value along the route. Restricted to specific directional movements, developers must apply dynamic programming principles to discover the optimal path. This challenge examines matrix traversal strategies and memoization techniques. Access the complete problem statement and a verified code solution with a subscription.
Coding & Leetcode-style Questionsdynamic-programmingmatrixgridReachability in a Time-Indexed Train Schedule
3/5This interview challenge, recently reported at Glean, explores navigation through a timed transit network. Candidates must determine whether a traveler can successfully commute from an origin point to a destination by catching connecting services under strict scheduling constraints. This task evaluates graph traversal techniques and temporal pathfinding abilities. The complete problem statement and optimal programmatic strategy require a subscription to view.
Coding & Leetcode-style QuestionsgraphbfsreachabilityMaximum Sum Subarray
2/5Finding the most lucrative contiguous segment within a numeric sequence is a foundational algorithmic challenge frequently encountered in technical screenings. As asked in recent developer interviews at Glean, this problem tests your ability to scan a linear collection of integers and efficiently isolate a sublist that yields the absolute highest cumulative sum. You will need to implement an optimized linear-time approach that dynamically evaluates running totals without relying on brute-force nested iterations. Unlock the complete problem guide, complexity analysis, and clean model implementation with our paid subscription.
Coding & Leetcode-style Questionsdynamic-programmingkadanearraysUser Access Log Storage and Time Range Query System
3/5In this engaging Glean interview question, candidates are tasked with designing an efficient mechanism to store and retrieve historical user activity records. The challenge evaluates your capability to manage structured event data and implement rapid temporal lookups across custom intervals for specific accounts. You will need to balance memory utilization with query speed to handle varying log volumes effectively. To explore the full problem description and examine the complete expert implementation, a subscription is required.
Coding & Leetcode-style Questionsdesignhashmaptime-rangeRecipe Storage with Version Control
3/5Master the design of an advanced data management system incorporating historical tracking and state restoration capabilities, highlighted as a notable interview exercise at Glean. This challenge tests your object-oriented design skills and proficiency in managing mutable states, tracking revisions, and performing seamless rollbacks. You will learn how to structure APIs that maintain audit trails and chronological integrity under various operations. Unlock the complete problem breakdown and verified model implementation with a subscription.
Coding & Leetcode-style Questionsdesignoodversion-controlShortest Distance Between 'X' and 'Y' in String
2/5This frequently reported interview question from Glean challenges candidates to efficiently compute the minimal separation index between two distinct target symbols scattered throughout a text sequence. The assessment evaluates your ability to traverse linear data structures while maintaining optimal tracking of element positions in a single pass. To explore the complete problem statement, optimal algorithmic approaches, and clean code implementations, unlock the full model solution with a subscription.
Coding & Leetcode-style Questionsstringtwo-pointersarraysWord Search
3/5This Glean interview question tests graph traversal and backtracking strategies on a two-dimensional character grid. Applicants must determine whether a specific text sequence can be formed by following adjacent horizontal and vertical steps without reusing the same matrix cell. This classic problem evaluates your mastery of depth-first search, state tracking, and recursive pathfinding optimization. Review the comprehensive explanation and complete solution code by acquiring a subscription.
Coding & Leetcode-style QuestionsbacktrackingdfsmatrixRetrieve Text Values of Two Web Elements Using Selenium
3/5Featured in Glean engineering interviews, this practical test requires you to write robust browser automation code using Selenium to extract text content from specific page elements. You must handle dynamic loading conditions by implementing appropriate wait strategies before retrieving the requested text strings safely. It effectively tests your familiarity with web testing frameworks and asynchronous element handling. Unlock the complete problem prompt and expert automation script by securing a subscription.
Coding & Leetcode-style Questionsseleniumweb-automationtestingImplement the 2048 Game (Board Move/Merge and Game Over Detection)
3/5Mastering grid-based puzzle mechanics is essential for this popular Glean interview challenge, which asks you to simulate the core rules of a sliding tile game. Candidates must programmatically handle directional shifts, combine identical adjacent values according to specific merging logic, and determine when no valid moves remain to trigger a game over state. This exercise evaluates your ability to manage matrix transformations and edge cases efficiently. Accessing the complete problem description, architectural breakdown, and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsmatrixsimulationarraysSort an Array with One Misplaced Element
3/5Reported as an interview challenge at Glean, this algorithmic task requires you to restore order to an integer sequence that has been disrupted by a single misplaced item. You are tasked with achieving linear time complexity without relying on standard comparison-based sorting utilities, making it a unique test of array traversal and edge-case management. The exercise probes your ability to recognize structural anomalies and design optimal linear routines. Review the full problem statement and the verified model solution with an active subscription.
Coding & Leetcode-style Questionsarrayssortingtwo-pointersFind Kth Largest Element in Two Sorted Arrays
3/5Reported during Glean technical rounds, this question challenges you to locate a specific ordered element across two separate sorted sequences in sublinear time. It tests your proficiency with divide-and-conquer strategies, binary search adaptations, and efficient pointer manipulation. Unlock the full problem details and comprehensive model solution by subscribing today.
Coding & Leetcode-style Questionsbinary-searchtwo-pointersheapMinimum Manhattan Distance Between 'X' and 'Y' in Matrix
2/5This reported Glean interview question challenges you to find the shortest spatial separation between two distinct target markers inside a grid populated by various symbols. Candidates must efficiently compute the grid-based distance without resorting to overly sluggish exhaustive searches. It evaluates your grasp of coordinate traversal strategies and graph search fundamentals. Unlock the full problem breakdown and complete tested code solution with a subscription.
Coding & Leetcode-style Questionsmatrixbfsgrid
Companies that ask similar questions
Glean interview FAQ
- How many Glean interview questions are available?
- 13 reported Glean questions, the largest group being Coding & Leetcode-style Questions (12).
- How hard is the Glean interview?
- Across the questions we track, Glean averages 2.8 out of 5: 3 at 2/5, 9 at 3/5, 1 at 4/5.
- What topics does Glean ask about?
- Most often arrays, matrix, grid, hashmap, two-pointers.