We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
this is my solution for java 8
public static int maxMin(int k, List arr) {
// Write your code here
int result = 99999999;
Collections.sort(arr);
int lastindex = k-1;
for (int i=0;i
}
return result;
}
Cookie support is required to access HackerRank
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 →
this is my solution for java 8 public static int maxMin(int k, List arr) { // Write your code here int result = 99999999; Collections.sort(arr); int lastindex = k-1; for (int i=0;i }