passes 1 given test case but for larges test cases, it gives garbage values.
What is the problem in the code?
@rohitkandpal683 There is just silly problem in line 108
You are scanning the deleteing elements till n instead of m
Correct it will work fine.
Please rate my answere you feedback will be conunted.
i corrected n with m but it does not give correect answer. i think that there is some more problem in returing values
i submit this same code 3-4 times .can you see my submisiion
@rohitkandpal683 you are deleteing the element in the wrong the order delete the element first which is scanned first