Wrong output by the console


#1

A : [ -50, -41, -40, -19, 5, 21, 28 ]
B : [ -50, -21, -10 ]
for this array its showing the output -20.0,which is not present


#2

if n+ m even return (C[mid]+C[mid+1])/2
else odd C[mid]