LeetCodeFind the Winning Player in Coin GameFind the Winning Player in Coin GameEasyMathSimulationGame TheorySolution export function losingPlayer(x: number, y: number): string { const turn = Math.min(x, Math.floor(y / 4)); return turn % 2 === 1 ? 'Alice' : 'Bob'; } Complexity Time: O(1) Space: O(1) LeetCodeFind the Winning Player in Coin Gamehttps://leetcode.com/problems/find-the-winning-player-in-coin-game