You are viewing a single comment's thread. Return to all comments →
Javascript:
function jumpingOnClouds(c, k) { let index = 0, e = 100; let n = c.length; do { if (c[index]==1) { e -= 2; } e--; index = (index + k) % n; } while (index!=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 →
Javascript: