Coding Challenge: Array Maximum

Let's find an element having a maximum value in the array.

Problem statement

Write a program that creates an array of the following elements, then returns the maximum element in the array.

5,12,32,27,18,9

Input

values = [3, 11, 7, 2, 9, 10];

Expected output

11

Coding exercise

Get hands-on with 1400+ tech skills courses.