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