Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityInterview Summary
technical phone screen at Applied Intuition involving Conway's Game of Life, but with an unusual scaling requirement: the board could be as large as 1,000,000 × 1,000,000 cells. Instead of implementing the standard Game of Life rules, the main challenge was redesigning an existing in-memory implementation to process an enormous, potentially dense board using limited memory and a file-based interface.
Interview Details
Round 1 — Coding: Game of Life on a 1M × 1M Board
The interviewer started by demonstrating Conway's Game of Life in a browser. I wasn't familiar with the game beforehand, so I first needed to understand how it worked. After the demonstration, the interviewer opened CoderPad and provided starter code containing the existing implementation.
The starter code included two important functions:
next_gen: Computes the next generation of the board._process_cell(old_board, new_board, row, col): Determines the next state of a particular cell based on its neighboring cells.
The implementation already contained the logic for determining whether a cell should remain alive, die, or become alive in the next generation.
Problem Description
Modify the existing implementation so that it can process a Game of Life board containing up to: 1,000,000 × 1,000,000 cells. The goal is to compute the next generation without loading the entire board into memory.
Key Constraints
-
1. Extremely Large Board
The board may contain up to one trillion cells. The interviewer expected me to reason about the memory requirements of representing a board of this size.
-
2. Dense Board Initialization
The initial board is generated randomly. Each cell is alive with probability
p, wherepis between0and1. Because the board may be densely
Unlock Full Details
Create a free account to unlock this interview experience report.