Generalized Tic-Tac-Toe

Design a generalized Tic-Tac-Toe game.

Given a board of size N x M and a winning length K, two players take turns placing marks. A player wins when they own at least K consecutive marks in any ...

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: