about | help | code help+videos | done | prefs |
apcsaListReplaceSomewhere
Given an ArrayList of Integers, the value of the first element is the index to replace, and the value of the second element is the new value for the replaced element. Return the modified ArrayList. Precondition: lst will have enough elements. The first element will have a value greater than or equal to 0.apcsaListReplaceSomewhere([2, 3, 2]) → [2, 3, 3] apcsaListReplaceSomewhere([1, 1, 5]) → [1, 1, 5] apcsaListReplaceSomewhere([0, 1, 2, 3]) → [1, 1, 2, 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: 210
Copyright Nick Parlante 2017 - privacy