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