You are viewing a single comment's thread. Return to all comments →
static String[] bigSorting(String[] unsorted) { List<BigInteger> Data = Arrays.stream(unsorted).map(BigInteger::new).collect(Collectors.toList()); Collections.sort(Data); String Result[] = new String[Data.size()]; for (int j = 0; j < Data.size(); j++) Result[j] = Data.get(j).toString(); return Result; }
This is my solution, it terminates the 4 test cases due to timeout (includes a very very large numbers)
Big Sorting
You are viewing a single comment's thread. Return to all comments →