You are viewing a single comment's thread. Return to all comments →
Python:
position = 0 jumps = 0 while position < n - 1: if position + 2 < n and c[position +2] == 0: position +=2 else: position +=1 jumps += 1 return jumps
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Jumping on the Clouds
You are viewing a single comment's thread. Return to all comments →
Python: