P E N C I L
Login
Interview Java

1. Collections.sort(Arrays.asList(arr), comparator)

    private class IntervalComparator implements Comparator<int[]> {
        @Override
        public int compare(int[]a, int[b]) {
            
        }
    }
    

return List.toArray(new int[0]);