You are viewing a single comment's thread. Return to all comments →
function jumpingOnClouds(c: number[]): number { let jumps = 0 for(let i=0; i < c.length - 1; i++){ const nextDoubleCloud = c[i + 2] if(nextDoubleCloud == 0) { i++ } jumps++ } return jumps }
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →