The Zero Floor
MediumAcc. 92.1%
+25 XP 10
The Baseline
Finding the minimum is the inverse of finding the maximum.
The Assignment
Your function receives an array temps.
- Initialize
minwith the first value. - Iterate and update
minif a smaller value is found. - Print the result.
01EXAMPLE 1
Input
temps = [30, 10, 50]Output
10Explanation: 10 is the lowest.
Constraints
- Manual loop implementation required.
ArraysLoopsSearch
JavaScriptSystem handles I/O — write your function only
Loading...
1 Hidden
Input Arguments
temps[30,10,50]
Expected Output
10
Click RUN to test your solution