Skip to content

Instantly share code, notes, and snippets.

@fahnub
Created June 20, 2023 04:39
Show Gist options
  • Save fahnub/90042b22777413108aad30996a0bde8f to your computer and use it in GitHub Desktop.
Save fahnub/90042b22777413108aad30996a0bde8f to your computer and use it in GitHub Desktop.
Foobar Level 2 Problem 1 (bunny worker locations)
def solution(x, y):
worker_id = (((x + y - 2) * (x + y - 1)) / 2) + x
return str(worker_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment