Ezvor

348. Design Tic-Tac-Toe

MediumArray Preparing judge… LeetCode
ArrayHash TableDesignMatrixSimulation

Hints

Hint 1
Could you trade extra space such that move() operation can be done in O(1)?
Hint 2
You need two arrays: int rows[n], int cols[n], plus two variables: diagonal, anti_diagonal.