harbor run -t openthoughts/tasktrove-exp-rpt-taco-v2-taco-7302
harbor download openthoughts/tasktrove-exp-rpt-taco-v2-taco-7302
Given an array of numbers, you are required to compute and return the difference between the largest and smallest values in the array.
For the input array [23, 3, 19, 21, 16], the output should be 20.
[23, 3, 19, 21, 16]
20
23
3
23 - 3 = 20
For the input array [1, 434, 555, 34, 112], the output should be 554.
[1, 434, 555, 34, 112]
554
555
1
555 - 1 = 554
max - min
Please place your solution in the /app/ directory.
/app/
Important: place your implementation at /app/solution.py so the verifier can run it.
/app/solution.py