You are viewing a single comment's thread. Return to all comments →
My Solution, but to slow...
public static List bigSorting(List unsorted) { return unsorted.stream() .map(BigDecimal::new) .collect(Collectors.toList()) .stream() .sorted() .map(String::valueOf) .collect(Collectors.toList()); }
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 →
My Solution, but to slow...
public static List bigSorting(List unsorted) { return unsorted.stream() .map(BigDecimal::new) .collect(Collectors.toList()) .stream() .sorted() .map(String::valueOf) .collect(Collectors.toList()); }