You are viewing a single comment's thread. Return to all comments →
def jumpingOnClouds(c): count=0 length=len(c) k=0 for i in range(length): if(k==length-2): count+=1 break if(not((k+2)>length-1)): if(c[k+2]==0): count=count+1 k=k+2 else: count=count+1 k=k+1 return count
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 →