Find Maximum Element Problem
Find Maximum Element Problem — ExecCode School DSA Practice
Solve the Find Maximum Element problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers. Your task is to solve Find Maximum Element. Find the largest number in the list and print it.
Examples
Input 5 1 2 3 4 5; Output 5. Input 3 5 2 1; Output 5
Constraints
1 <= N <= 1000 -10^9 <= A[i] <= 10^9
Practice Find Maximum Element free on ExecCode. Browse DSA problems, topic map, and placement guides.