How to duplicate and array and add the repeated item?
Interview Answers
Anonymous
Sep 10, 2021
I explained the syntax and coded it in python
Anonymous
Sep 11, 2021
Create 2 arrays orig and dup of size n ;
add elements to first array i.e orig array and then while copying
iteratate the array size and use
copy[i] = orig[i]