Download 100/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 163 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/100/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/100/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/100/solution/_reference.py
163 Bytes
| import sys | |
| def next_smallest_palindrome(num): | |
| numstr = str(num) | |
| for i in range(num+1,sys.maxsize): | |
| if str(i) == str(i)[::-1]: | |
| return i |