@simsima135

One part confuses me. When you loop through the array, the first number will be the maximum. I wonder how that problem would be sorted if 2 was the first number in the array, because then 2 would be the maximum since it was the first return of the loop, and therefore you would not be able to go back and have 2 as the minimum. Am I missing something?

@rayberjany7064

Why for the maximum we use (- infinity)?

@GonzaloGuevaraFreire

Y haciendo Sort y tomando el primero y el Ășltimo?

@Chatmademusix

Pls load