Program Discussion :: Array
9 / 23
Given two vectors. One contains array element "ele" and other indexes "ind" to push the corresponding element at that index in new array shifting all elements to its right.
Example:
Intput:
ele = {0, 1, 2, 3, 4} ind ={0, 1, 2, 1, 2}
Output: {0, 3, 4, 1, 2}
Answer: