You are viewing a single comment's thread. Return to all comments →
Java
public static List<Integer> sol(List<Integer> width, List<List<Integer>> cases) { List<Integer> res = new ArrayList<>(); for (int i = 0; i < cases.size(); i++) { List<Integer> l = new ArrayList<>(); for (int j = cases.get(i).get(0); j <= cases.get(i).get(1); j++) { l.add(width.get(j)); } res.add(Collections.min(l)); } return res; }
Seems like cookies are disabled on this browser, please enable them to open this website
Service Lane
You are viewing a single comment's thread. Return to all comments →
Java