You are given a list of integers. Find the largest value present in the list.
This problem is part of Linked Lists practice and is designed to strengthen the Pointer Basics pattern.
Return one integer: the maximum value in the list.
Input:
8
-8 11 30 49 -29 -10 9 28
Output:
49
Explanation:
1 <= n <= 10^5-10^9 <= value <= 10^9Implement the starter function for this Easy problem. Read from the raw input string and return only the required answer, with no labels or debug text.
Run Code checks the visible sample cases. Submit checks those samples plus additional hidden cases that follow the same input format and constraints.
8 -8 11 30 49 -29 -10 9 28
49