Spaces:
Sleeping
Sleeping
Download dataset/problem_14/buggy.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_14/buggy.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_14/buggy.py
-
curl -L -o buggy.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_14/buggy.py
223 Bytes
| def fibonacci_recursive(n: int) -> int: | |
| """Return nth Fibonacci number.""" | |
| # BUG: wrong base case for n == 0. | |
| if n <= 1: | |
| return 1 | |
| return fibonacci_recursive(n - 1) + fibonacci_recursive(n - 2) | |