Kotlinlearncs.online LogoJava
Return to List

Solve: Max Triple

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given a non-null IntArray with odd length of at least one, look at the first, last, and middle values in the array and return the largest.

fun maxTriple(values: IntArray): Int {
return 0 // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: