id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

pais@kinetigram.com > A211_maxTriple
prev  |  next  |  chance

APCS Array 2, Problem 11. Given an array of ints of odd length, look at the first, last, and middle values in the array and return the largest. The array length will be a least 1.


A211_maxTriple([1, 2, 3]) → 3
A211_maxTriple([1, 5, 3]) → 5
A211_maxTriple([5, 2, 3]) → 5

...Save, Compile, Run (ctrl-enter)

public int A211_maxTriple(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy