← Apple questions
CodingReported in a candidate post, Apr 2021

Check whether a player has won a Tic Tac Toe board

Filed under Apple

Given an n x n Tic Tac Toe board where each cell is 'X', 'O' or '' (empty), determine whether a player has won. A player wins by filling an entire row, column or either diagonal. Return 'X' or 'O' for…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Apple questions

Collected from public candidate posts and coding forums. Updated Nov 2026.