Maximum and minimum of an array using minimum number of comparisons

1 min read

https://practice.geeksforgeeks.org/problems/middle-of-three2926/1

Square root of an integer
Optimum location of point to minimize total distance