NEC CORPORATION Hiring | Off-Campus OA (2023) | Tic Tac Toe Game
Question · Posted Jun 2026
Q1: Find Winner on a Tic Tac Toe Game Problem Statement You are given a list of moves made by two players in a 3 × 3 Tic Tac Toe game. Player A always makes the first move. Players alternate turns. Each move is represented as [row, col]. Return: "A" if Player A wins. "B" if Player B wins. "Draw" if all 9 cells are filled and no player wins. "Pending" if the game has not finished and there is ...
The full answer & interview discussion are available to premium members.
Log in Create a free account