You are viewing a single comment's thread. Return to all comments →
PYTHON 3 SOLUTION
def jumpingOnClouds(c): # Write your code here j = 0 i = 0 while i < (len(c) - 1): if i + 2 < len(c) and c[i+2] != 1: i = i + 2 else: i = i + 1 j = j + 1 return j
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 →
PYTHON 3 SOLUTION