292. Nim Game

Solution: find here

1
2
3
public boolean canWinNim(int n) {
        return n % 4 != 0;
    }