Determine Whether a Tic-Tac-Toe Game Is Over
Given the current state of an n × n Tic-Tac-Toe board board, determine whether the game is over.
Each cell is one of:
"X": a move by player X"O": a move by player O".": an empty ce...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
