Highs and Lows (Arrays & Lists)

Read n integers and print the largest and smallest as max min.

Input: n, then n integers.

Output: max min.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Start both from the first element.

More Arrays & Lists practice