about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy