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