To build a suffis array on a string of n characters,
- we first generate the n suffixes O(n)
- and then sort them O(n log n)
the total time complexity apprears to be O(n) + O(nlogn) = O(nlogn).
But I am reading that it is O(n^2 log n) and could not understand how. Can someone please explain?