You are viewing a single comment's thread. Return to all comments →
Java
public static List<String> bigSorting(List<String> unsorted) { unsorted.sort((s1, s2) -> { if (s1.length() == s2.length()) { return new BigInteger(s1).compareTo(new BigInteger(s2)); } return s1.length() - s2.length(); }); return unsorted; }
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Java