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

 

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

APCS Array 1, Problem 14. Given an array of ints length 3, figure out which is larger between the first and last elements in the array, and set all the other elements to be that value. Return the changed array.


A114_maxEnd3([1, 2, 3]) → [3, 3, 3]
A114_maxEnd3([11, 5, 9]) → [11, 11, 11]
A114_maxEnd3([2, 11, 3]) → [3, 3, 3]

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

public int[] A114_maxEnd3(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