Driver Code
public static void main ( String args [ ] ) { int arr [ ] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; int K = 9 ; int N = arr . length ; System . out . printf ( " % .1f " , minMaxDist ( arr , N , K ) ) ; } }