Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def avoidObstacles(a):
- for i in range(2, max(a)+2):
- n = 0
- while n < max(a):
- n += i
- c = True
- if n in a:
- c = False
- break
- if c:
- return i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement