| about | help | code help+videos | done | prefs |
Given an array of integers, an index, and a new element return a new array with the element inserted at the index. add([0, 1, 2, 3, 4, 5], 0, -1) → [-1, 0, 1, 2, 3, 4, 5] add([0, 1, 2, 3, 4, 5], 6, 6) → [0, 1, 2, 3, 4, 5, 6] add([0, 1, 2, 3, 4, 5], 7, 99) → [0, 1, 2, 3, 4, 5] ...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: 200
Copyright Nick Parlante 2017 - privacy