Problems

Find Maximum

EasyArrays

Given an array of integers, find the maximum element in the array.

Input Format: The first line contains a single integer n, the number of elements in the array. The second line contains n space-separated integers, the elements of the array.

Output Format: The maximum element in the array.

Hints

ArraysMax ElementAlgorithm