You are viewing a single comment's thread. Return to all comments →
Java:
static int jumpingOnClouds(int[] c, int k) { int e = 100; int pos = 0; do { pos = (pos + k) % c.length; e -= 1 + 2 * c[pos]; } while (pos != 0); return e; }
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping on the Clouds: Revisited
You are viewing a single comment's thread. Return to all comments →
Java: