You are viewing a single comment's thread. Return to all 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??
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all 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??