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.