You are viewing a single comment's thread. Return to all comments →
Realy easy after sorting... Solved in 1 line using java
for(int i = 0; i<=N-K; i++) unfairness = Integer.min(unfairness,list[i+K-1]-list[i]);
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 →
Realy easy after sorting... Solved in 1 line using java