max-element

MEDIUM
find the maximum element in the given array

Test Case 1:

Input:510 20 25 14 1

Output: 25

Test Case 2:

Input:710 20 25 14 1 22 35

Output: 35

Test Case 3:

Input:3-1 -10 -5

Output: -1

Loading...

Input:

510 20 25 14 1

Expected Output:

25

Your Output:

No output yet.