Detect Connect Four from the Latest Move
Given a 2D board, the coordinate (row, col) of the latest move, and a player ID, determine whether this move creates four consecutive pieces of that player's color.
Implement:
did_player...
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:
