Input: , 
why the Expected is 1.00000
The first array is empty.
After merging these two arrays, the array is . The median should be 1.
seems like you're calculating the average, not median. for your case, there is only one element in the array which is .
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.