Median of the array

in the video discussed, they told to merge both the arrays and then sort them and show the middlemost element but here its not passing the test cases;

Hey Pranav!, when you merge sorted arrays then you don’t need to sort merged array again!, also share your code , take care that after merging you return a[n-1] where a is merged array and n is size of two arrays

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.