What is wrong with my approach?


merge function meh dikat h
corner points include nhi ho rahe h

Can you pinpoint the changes required in my code instead? I am familiar with this approach of creating a single temp array but I want to get it to work by creating two arrays.

Hi Chhavi, I found the bug. In the last while loop, it should be s2 not s1. Rest all is perfectly fine.

1 Like

Great
that vahi choti si cheese kabhi kabhi dikhti nhi thanks for letting me know the error