Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ; NEW_LINE K = 9 ; NEW_LINE N = len ( arr ) ; NEW_LINE print ( minMaxDist ( arr , N , K ) ) ; NEW_LINE DEDENT