All Problems
easyLists

Find Maximum in List

Problem Statement
Given n integers, find and print the maximum value.

SAMPLE INPUT

5
3 1 7 2 9

SAMPLE OUTPUT

9

CONSTRAINTS

  • 1 <= n <= 1000
  • -10000 <= elements <= 10000

Explanation: Use the built-in max() function or iterate through the list.

Code Editor
Output
Click "Run" to see output...