Spaces:
Sleeping
Sleeping
Download dataset/problem_15/buggy.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_15/buggy.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_15/buggy.py
-
curl -L -o buggy.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_15/buggy.py
247 Bytes
| def has_overlap(a: tuple[int, int], b: tuple[int, int]) -> bool: | |
| """Check if closed intervals [a0, a1] and [b0, b1] overlap.""" | |
| # BUG: uses strict inequalities, missing touching-boundary overlap. | |
| return a[0] < b[1] and b[0] < a[1] | |