Download 145/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/145/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/145/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/145/solution/_reference.py
214 Bytes
| def max_Abs_Diff(arr): | |
| n = len(arr) | |
| minEle = arr[0] | |
| maxEle = arr[0] | |
| for i in range(1, n): | |
| minEle = min(minEle,arr[i]) | |
| maxEle = max(maxEle,arr[i]) | |
| return (maxEle - minEle) |