2048 Game: Slide and Merge Tiles on a 4x4 Board in Any of Four Directions
Company: Glean
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: hard
Interview Round: Technical Screen
Overview: A coding question based on the 2048 sliding-tile game: given a fixed 4x4 board and one of four directions, return the board after every tile slides and equal tiles merge. It tests careful simulation, the merge-once and merge-order rules, handling all four directions with shared logic, and thorough self-testing.