Spaces:
Sleeping
Sleeping
Download dataset/problem_10/buggy.py from Viraj0112/rl_code_fix_env: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_10/buggy.py
- Command line
-
hf download hf://spaces/Viraj0112/rl_code_fix_env/dataset/problem_10/buggy.py
-
curl -L -o buggy.py https://huggingface.co/spaces/Viraj0112/rl_code_fix_env/resolve/main/dataset/problem_10/buggy.py
257 Bytes
| from dataset.problem_10.helpers import transpose | |
| def rotate_90_clockwise(matrix: list[list[int]]) -> list[list[int]]: | |
| """Rotate matrix 90 degrees clockwise.""" | |
| t = transpose(matrix) | |
| # BUG: this is counter-clockwise. | |
| return t[::-1] | |