Write min_max_scale(nums) scaling values to 0–1: (x − min) ÷ (max − min), rounded to 3. If all values are equal, return zeros.
min_max_scale([10, 20, 30]) → [0, 0.5, 1]
min_max_scale([5, 5]) → [0, 0]
Submit runs 3 tests, including hidden edge cases.
Run your code to see the output here.