about | help | code help+videos | done | prefs |
Given an ArrayList of Integers and an int val, insert three elements at the beginning. The first has the value of the val parameter, the second has the value 2*val, the third has the value 3*val. Return the modified ArrayList. apcsaListInsertThrice([0], 4) → [4, 8, 12, 0] apcsaListInsertThrice([15, 17], 1) → [1, 2, 3, 15, 17] apcsaListInsertThrice([10, 11], 0) → [0, 0, 0, 10, 11] ...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: 120
Copyright Nick Parlante 2017 - privacy