You are viewing a single comment's thread. Return to all comments →
Java 8
public static String pokerNim(int k, List<Integer> c) { return c.stream().reduce(0, (res, i) -> res ^ i) != 0?"First":"Second"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Poker Nim
You are viewing a single comment's thread. Return to all comments →
Java 8