348. Design Tic-Tac-Toe
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.
Preparing judge…