Glean logo

Glean Interview Question Bank

Glean builds enterprise search and work AI, and its interviews lean toward practical, implementation-heavy coding rather than puzzle tricks. ML candidates also face an ML design round and a build round paired with an AI coding assistant, so working fluently with AI tools is part of the bar.

Coding problems
23
Before you start
Showing 24 of 24
Coding
MediumFree preview

2048 Board Tilt

Implement the 2048 tilt (swipe) operation on a fixed 4x4 board: tiles slide fully in the swiped direction and equal adjacent values merge. All four directions are required, candidates are expected to write and run their own tests, and a common follow-up asks how to detect game over.

SWE
grid
simulation
array
medium
5 related discussions