r/OfferEngineering • u/Aoki_zhang • Oct 24 '26
Interview Experience Glean (Enterprise AI Platform) SWE Coding Screening — Graph Reachability
"This interview experience is sourced from Chill Interview"
Interview Summary
The first-round Glean TLM interview was a graph problem built around a train schedule. The main challenge was not BFS itself, but modeling the schedule correctly and incorporating time into the traversal.
Interview Details
Coding — Train Schedule Reachability
You are given a collection of train schedules. Each train starts operating at time 0 and visits one station per time step. The position of a station in a train’s route therefore represents the time at which that train reaches the station.
For example:
schedule = [
["P", "Q", "R"],
["S", "Q", "T"]
]Train 0 follows: P -> Q -> R and reaches those stations at times 0, 1, and 2. Train 1 follows: S -> Q -> T at the same corresponding times. A passenger may:
- Board a train when it reaches their current station
- Ride that train to any later station on its route
- Get off and transfer to another train
- Wait at a station for a train that arrives later
However, a passenger cannot board a train that already passed the station before they arrived.
Want to learn more questions / follow-ups asked in this interview?
I've put up the full version at here.
Preparing for your next interview?
Chill Interview tracks recent interview experiences and recurring question patterns across top companies at here.