Design a Tic-Tac-Toe System (k Players, n x n Board)

Asked at Google · Coding Questions · Difficulty: Medium · Last asked May 18, 2026

Implement a Tic-Tac-Toe game for `k` players on an `n x n` board. Players take turns placing marks, and a player wins by owning every cell of one row, one column, or one of the two main diagonals. The game engine must report the result of each move immediately and cheaply, even for a very large board.

Loading the problem…