Challenge 1: Find the Maximum Value

Learn how to find the maximum value in an array in this challenge.

Problem statement

Write a method named Find_Maximum() to find the maximum integer value stored in an array.

Input

The array passed as a parameter.

Output

The maximum value found in the array.

Sample Input & Output

Input: {15, 6, 3, 21, 19, 4}
Output: 21

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy