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 ; Console . Write ( " { 0 : F1 } " , minMaxDist ( arr , N , K ) ) ; } }