Search
⌘K

Leetcode 1275. Find Winner on a Tic Tac Toe Game

Given a sequence of alternating moves on a 3x3 tic-tac-toe board, determine whether player A or B wins (three in a row), the game ends in a draw, or is still pending. The core challenge is to detect a 3-in-a-row efficiently as moves are applied (e.g., by tracking row/column/diagonal counts or updating the board).

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early July, 2025

Meta

Manager

Mid April, 2025

Meta

Mid-level

Early April, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.