Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPrep Other Coding Questions Asked by Asana
Continue with targeted prep from Asana's coding question bank.
Interview Summary
I had a 60-minute object-oriented design interview with Asana for an L4 Software Engineer position. The interview consisted of two design questions: implementing the 2048 game and designing a rectangular jigsaw puzzle. Both problems required only pseudocode, with the interviewer focusing primarily on class design, data structures, and how different components should interact.
The questions were open-ended, but the interviewer was helpful throughout the discussion. I felt the difficulty was moderate, and the emphasis was more on clear reasoning than producing a perfect implementation.
Interview Details
Question 1 — Design the 2048 Game
The game consists of a grid containing numbered tiles. Players move tiles in different directions, and tiles with matching values can merge. The interviewer expected me to cover several functionalities:
- Create a Game: Initialize a new game and its board.
- Get Board State: Retrieve the current state of the game board.
- Make a Move: Allow a player to move the tiles in a specified direction.
- Restart the Game: Reset the game to its initial state.
- Check Game Over: Determine whether the game had ended.
Since the interview focused on OOD, I discussed how to organize these operations into appropriate classes and methods.
-
Follow-up — Where Should the Game Logic Live?
The interviewer asked how I would separate the game logic from the rest of the application. I needed to reason about the responsibilities of the different classes and decide where the board state and movement logic should be managed.
-
Follow-up — How Would You Validate Moves?
The interviewer wanted me to explain how the system would determine whether a requested move was valid. This required
Unlock Full Details
Create a free account to unlock this interview experience report.