You are viewing a single comment's thread. Return to all comments →
My Java 8 Solution
public static int towerBreakers(int n, int m) { if (m == 1) { return 2; } if (n % 2 == 0) { return 2; } else { return 1; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
My Java 8 Solution