Easy Java Solution


  • 0
    S

    Because 1 + 3 = 4, if(n%4 ==0), then we can't win the game, else we can win.

    if(n%4 == 0) return false; else return true;

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.