You are viewing a single comment's thread. Return to all comments →
function jumpingOnClouds(c, k) { let countLen = c.length, i=0,totalEnergy = 100; while(1){`` i = i+k; if(i>=countLen) i = i-countLen if(c[i] === 1) totalEnergy -=2; totalEnergy -=1; if(i=== 0) return totalEnergy } }
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 →