You are viewing a single comment's thread. Return to all comments →
def jumpingOnClouds(c): ci_index=0 last_index=len(c)-1 jumps=0 while ci_index < last_index: jumps += 1 next_ci_index = ci_index+2 if next_ci_index > last_index or c[next_ci_index] == 1: next_ci_index = ci_index+1 ci_index = next_ci_index
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 →