🔥 Burn Fat Fast. Discover How! 💪

#challenge Find the Smallest and Biggest Numbers | #easy C | SeasonedDev

#challenge

Find the Smallest and Biggest Numbers | #easy

Create a function that takes an array of numbers and return both the minimum and maximum numbers, in that order.

Examples:

minMax([1, 2, 3, 4, 5]) ➞ [1, 5]
minMax([2334454, 5]) ➞ [5, 2334454]
minMax([1]) ➞ [1, 1]

For your convenience: jsfiddle | codepen.

Leave your solutions in the comments. The solution will be posted below in a couple of hours

#interview