Maximum Distance in Array




@Ryanm In that case also, the distance calculation isn't maxmin, but it is MAX(maxa[0], a[n1]min). Here a[0] and a[n1] belong to the next array being considered. Thus, the distance is always calculated among separate arrays only. You can see the illustration above which includes this case as well.