You are viewing a single comment's thread. Return to all comments →
Java
static int jumpingOnClouds(int[] c, int k) { int e = 100, i = 0; do { e -= (c[i] == 1) ? 3 : 1; i = (i + k) % c.length; } while (i != 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