Glean Coding Interview Questions
13 coding questions reported by candidates who interviewed at Glean, out of 14 Glean questions we track. They average 2.8/5 difficulty (medium). Most common topics: Array, Matrix, Grid, Simulation. 2 were reported asked within the last year, most recently in October 2026.
Practice Glean questions →Difficulty
- 2/5 — easy3
- 3/5 — medium10
Asked for SWE (13), DataEng (1)
Reported Glean coding questions
Document Indexing Queue Across m Indexers
3/5A scheduling simulation over a pool of parallel workers: each job has a preferred worker and must find another one when it is occupied, or be discarded. It tests careful handling of time boundaries and wraparound, and reporting the most loaded workers with a deterministic tie-break.
asked October 2026SimulationSchedulingHeapSort 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.
asked July 2026ArraySortingTwo PointerShortest 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.
ArrayStringTwo PointerMaximum 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.
Dynamic 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.
GraphBFSReachabilityMaximum 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.
ArrayDynamic ProgrammingKadaneUser 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.
DesignHashmapTime RangeRecipe Storage with Version Control
3/5A Glean object-oriented design question: build a small store that remembers each saved revision of a recipe and can return any recipe to an earlier revision without losing later ones. It tests API design, choosing a simple storage model for revision history, and handling invalid calls cleanly.
DesignOODVersion ControlWord 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.
BacktrackingDFSMatrixRetrieve 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.
SeleniumWeb 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.
ArrayGridMatrixFind 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.
ArrayBinary SearchHeapMinimum 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.
MatrixBFSGrid
Recent Glean interview experiences
Full loops shared by candidates, every round included.
Glean coding interview FAQ
- What coding questions does Glean ask?
- 13 reported coding questions, most often on Array, Matrix, Grid, Simulation, Two Pointer.
- How hard is the Glean coding interview?
- The reported coding questions average 2.8 out of 5: 3 at 2/5, 10 at 3/5.
- Are these Glean coding questions recent?
- The most recent report is from October 2026, and 2 were reported within the last twelve months. Dates come from the interview reports themselves.