mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Clement Denis
0e67e834e5
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
README.md
Extremes
Instructions
Create a function extreme
that given an array of number find the bigest and
smallest number of the array
Examples:
extreme([-1, 0, 10, 5]) // -> { bigest: 10, smallest: -1 }
extreme([22, 7, 32, 99, 54]) // -> { bigest: 99, smallest: 7 }