Software Engineer
Interview Date
January 3, 2023
Result
Not Specified
Difficulty
Hard
Rounds
At least 1 coding round
Drive Type
Full-Time
Topics asked
Detailed experience
College: Not Specified
Interview Date: January 3, 2023
Interview Type: Full-Time
Result: Not Specified
Difficulty: Hard
Rounds: At least 1 coding round
Topics Asked: Algorithms, Data Structures (queues, array manipulation), Concurrency/Scheduling concepts
A coding interview for a Software Engineer position at Glean involved a detailed problem focused on document processing and indexer allocation.
Document `i` is initially assigned to indexer `i%m` if it's not busy. If the assigned indexer is busy, the system finds the next available indexer in increasing order (wrapping around from `m-1` to 0). If all indexers are busy, the document is dropped.
The candidate was provided with:
The algorithm was required to compute: