Glean·Frontend Engineer·Technical Phone Screen
May 2026
Interviewed for a frontend role at Glean and got hit with a coding problem straight out of a game jam. The 2048 tilt mechanic sounds like a fun warmup until you're actually trying to handle merges and edge cases under pressure.
- Implement the tile-sliding and merging logic from 2048. Given a 4x4 board, tiles should slide in a given direction (up, down, left, right), and adjacent tiles with equal values merge into one tile of double the value. Each tile can only merge once per move. Handle all four directions.
“I started with just left-slide since that felt easiest to reason about, got that working, then tried to rotate the board to reuse the same logic for other directions.”