Bloomberg Phone Screen question
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2023-02-02Added By Anonymous
Source: Link
Company: Bloomberg
Role: unknown
Stage: Phone Screen
Location: unknown
Year: unknown
Hi everyone, Had an interview with Bloomberg. And they asked a question simlar to Leetcode 794. But it is harder. The question is to check the current status of Connect 4 game board, and to return if who wins without any moves or one of the players can win with the next move. The input is board(2D array), and the next player. For example, in the first board below, yellow wins. In the second board below, whoever plays the next chip wins. Please help! Thank you!

Role: unknown
Stage: Phone Screen
Location: unknown
Year: unknown
Hi everyone, Had an interview with Bloomberg. And they asked a question simlar to Leetcode 794. But it is harder. The question is to check the current status of Connect 4 game board, and to return if who wins without any moves or one of the players can win with the next move. The input is board(2D array), and the next player. For example, in the first board below, yellow wins. In the second board below, whoever plays the next chip wins. Please help! Thank you!

