public/subjects/extremes
Clement Denis 0e67e834e5 update discovery-piscine subjects and tests 2021-04-29 17:47:50 +01:00
..
README.md update discovery-piscine subjects and tests 2021-04-29 17:47:50 +01:00

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 }