Can anyone explain what i am doing wrong?
ques->https://leetcode.com/problems/merge-sorted-array/
Merge sorted array Leetcode
Hi @mikkyimran, in your code u are overwriting your nums1 vector . just make a new vector instead of working on nums1 . and at last copy the content to nums1
refer this:-
1 Like