You are viewing a single comment's thread. Return to all comments →
i also used the same arr.sort() m=10**10 for i in range(0,n-k+1): b=arr[i] c=arr[i+k-1] m=min(m,(c-b)) print(m)
Seems like cookies are disabled on this browser, please enable them to open this website
Max Min
You are viewing a single comment's thread. Return to all comments →
i also used the same arr.sort() m=10**10 for i in range(0,n-k+1): b=arr[i] c=arr[i+k-1] m=min(m,(c-b)) print(m)