+ 5
How do you calculate time complexity of heap sort?
The way I have implemented is typically the same I have seen while going through tutorials but it results in time complexity of close to O (n*n) instead of O(n log n ),so is my way of calculating it wrong which results in more iterations? Any help is much appreciated . https://code.sololearn.com/csja3X5EFZYH/?ref=app
4 Réponses