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.
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.int maxTriple(int[] values) {
return 0;
}