You are viewing a single comment's thread. Return to all comments →
def jumpingOnClouds(c, k): t = n = len(c) e = 100 while t > 0: t = (t + k) % n e -= 3 if c[t] == 1 else 1 return e
Seems like cookies are disabled on this browser, please enable them to open this website
Jumping on the Clouds: Revisited
You are viewing a single comment's thread. Return to all comments →