You are viewing a single comment's thread. Return to all comments →
def maxMin(k, arr): # Write your code here arr=sorted(arr) minn=10**9 for i in range(len(arr)-(k-1)): minn=min(minn,arr[i+(k-1)]-arr[i]) return minn
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 →