Java

292. Nim GameJavaMister-Hopelizncu

Mister-Hope

/*
 * Your runtime beats 100 % of java submissions
 *
 * Your memory usage beats 10.33 % of java submissions (35.4 MB)
 */
class Solution {
  public boolean canWinNim(int n) {
    return n % 4 != 0;
  }
}

lizncu

class Solution {
  public boolean canWinNim(int n) {
    return n % 4 == 0 ? false : true;
  }
}