You are viewing a single comment's thread. Return to all comments →
My python3 solution
def jumpingOnClouds(c): # Write your code here count = 0 i = 0 while i < len(c)-1: if (i + 2 < len(c)) and c[i+2] == 0: count += 1 i += 2 else: count += 1 i += 1 return count
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →
My python3 solution