Given an array of integers, return the maximum value from the array.
Example:
Input: nums = [2, 7, 11, 8, 11, 8, 3, 11]
Output: 11
Explanation: The maximum value is 11
Note:
Do not use builtin functions such as max(), it would defy the purpose of the challenge. Write the whole code yourself.
Free plan: 30 tutor messages. Premium is unlimited.
Saved
Ctrl + Enter to check