• + 0 comments

    Java 8

    public static String pokerNim(int k, List<Integer> c) {
      return c.stream().reduce(0, (res, i) -> res ^ i) != 0?"First":"Second";
    }