Back
max-element
MEDIUM
Description
Submissions
find the maximum element in the given array
Test Case 1:
Input:
5
10 20 25 14 1
Output: 25
Test Case 2:
Input:
7
10 20 25 14 1 22 35
Output: 35
Test Case 3:
Input:
3
-1 -10 -5
Output: -1
Loading...
Console:
SignIn to submit
Test Case
Output
Test Case 1
Test Case 2
Test Case 3
Input:
5
10 20 25 14 1
Expected Output:
25
Your Output:
No output yet.