about | help | code help+videos | done | prefs |
listAddRepeat
Given a List of Integers called lst, add a new element at position pos, with the same value as the old element at pos. Return the List as output. listAddRepeat([3, 4, 5], 2) → [3, 4, 5, 5] listAddRepeat([5, 0, 3], 0) → [5, 5, 0, 3] listAddRepeat([3, 5, 6], 1) → [3, 5, 5, 6] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy