• + 4 comments

    But sorting of an array itself has a time complexity of n^2. so how can the time complexity of your program be nlogn??