my code on leetcode
question link
Help me out in this problem

u cannot use indexing on empty vector v.
first declare it of size m.size and the it will not give run error
first ki jaah second aur second ki jagah first tha…
baaki thoda v vector mein bhi change tha
@aman212yadav no to initialise we have to create n+1 size vector
baaki same hi code haan
first ki jagaah second nahi hoga
what if i say ,it is wrong
yeah this one is correct