InterviewDB
Question
Winning Tile - Find the Last Player to Complete a Row in a Tile Game
phone
Question Details
Problem Two players take turns placing tiles on an n x n board. Player 1 uses 'X', Player 2 uses 'O'. A player "wins" the moment they complete a full row, full column, or either diagonal. Given a sequence of moves [(row, col), ...] (alternating playe…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite
Phone