A utility function to find median of two integers This function returns median of a [ ] and b [ ] . Assumptions in this function : Both a [ ] and b [ ] are sorted arrays
function findmedian ( a , n1 , b , n2 ) { let i = 0 ;