How to find the maximum and minimum of an array of numbers?

[5, 3, 9, 4, 1]
user
To find the maximum and minimum of the array of numbers [5, 3, 9, 4, 1], you can use the built-in functions max() and min(). The max() function will return the largest number, which is 9 in this case. The min() function will return the smallest number, which is 1 in this case.
assistant