You are viewing a single comment's thread. Return to all comments →
def jumpingOnClouds(n, c, k): e = 100 i = 0 while True: i = (i + k) % n e -= 1 + 2 * c[i] if i == 0: break 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 →