Glean Interview Questions

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.

19 Questions 1 Company07.02.2026
Showing 19 results
Role
Glean logo
Glean
Medium
Software Engineer

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...

Coding & Algorithms
3
0
28 people solved
Jul 2, 2026
Glean logo
Glean
Medium
Machine Learning Engineer

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...

ML System Design
11
0
180 people solved
Apr 23, 2026
Glean logo
Glean
Medium
Software Engineer Locked

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...

Coding & Algorithms
1
0
23 people solved
Jun 14, 2026
Glean logo
Glean
Medium
Software Engineer Locked

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 ...

Software Engineering Fundamentals
3
0
59 people solved
Jun 19, 2026
Glean logo
Glean
Medium
Software Engineer Locked

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...

Software Engineering Fundamentals
4
0
44 people solved
Jun 19, 2026
Glean logo
Glean
Medium
Software Engineer Locked

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 ...

Behavioral & Leadership
3
0
29 people solved
Jun 19, 2026
Glean logo
Glean
Easy
Data Scientist

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...

Statistics & Math
5
0
48 people solved
Jan 11, 2026
Glean logo
Glean
Medium
Software Engineer

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...

Coding & Algorithms
1
0
21 people solved
Apr 1, 2026
Glean logo
Glean
Easy
Data Scientist

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...

Analytics & Experimentation
3
0
31 people solved
Jan 11, 2026
Glean logo
Glean
Easy
Data Scientist

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 ...

Analytics & Experimentation
6
0
61 people solved
Nov 10, 2025
Glean logo
Glean
Hard
Software Engineer

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 (...

Coding & Algorithms
19
0
237 people solved
Feb 11, 2026
Glean logo
Glean
Medium
Machine Learning Engineer

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...

Coding & Algorithms
3
0
32 people solved
Apr 23, 2026
Glean logo
Glean
Hard
Software Engineer

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...

Coding & Algorithms
35
0
361 people solved
Nov 19, 2025
Glean logo
Glean
Medium
Software Engineer Locked

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,...

Coding & Algorithms
2
0
15 people solved
May 17, 2026
Glean logo
Glean
Medium
Machine Learning Engineer AI

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...

Coding & Algorithms
0
0
12 people solved
Apr 23, 2026
Glean logo
Glean
Hard
Software Engineer

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 ...

Coding & Algorithms
7
0
130 people solved
Apr 15, 2026
Glean logo
Glean
Medium
Software Engineer

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...

Coding & Algorithms
27
0
191 people solved
Mar 1, 2026
Glean logo
Glean
Easy
Data Scientist

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) ...

Data Manipulation (SQL/Python)
5
0
60 people solved
Nov 10, 2025
Glean logo
Glean
Medium
Machine Learning Engineer

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...

Coding & Algorithms
17
0
133 people solved
Feb 7, 2025