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.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun maxTriple(values: IntArray): Int {
return 0
}