Created
August 18, 2021 15:05
-
-
Save benthomasson/910798761055af8b5a06d837ff1549ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def mystery(x): | |
| assert x >= 0 | |
| if x <= 0: | |
| return 1 | |
| if x == 1: | |
| return 1 | |
| return mystery(x-1) + mystery(x-2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment