Kotlinlearncs.online LogoJava
Return to List

Solve: Max Triple

Imported By: Geoffrey Challen
/ Version: 2021.6.0

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

int maxTriple(int[] values) {
return 0; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: