• + 1 comment

    The solution I posted uses the built in sort method that Java has. That built in method runs in O(n log(n)) by performing a dual pivot quicksort on the collection. For the comparison used in that sort, I wrote my own string comparison method that runs in worst case the length of one of the strings. O(n log(n)) is a aproximation the absolute would be O(SumOfStrings log n).