2025-08-22 18:36:17 +0000 UTC
Find the Winning Player in Coin Game
Categories:
Links
Code
class Solution:
def winningPlayer(self, x: int, y: int) -> str:
y //= 4
x = min(x, y)
if x % 2 == 1:
return "Alice"
else:
return "Bob"