File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,22 @@ <h2 class="algo-header">Heap Sort</h2>
97
97
Heap sort is a comparison based sorting technique based on Binary Heap data structure. It is similar to selection sort where we
98
98
first find the maximum element and place the maximum element at the end. We repeat the same process for remaining element.
99
99
</ span >
100
+ < span class ="algo-complexity ">
101
+ < ul >
102
+ < li class ="algo-info ">
103
+ < span class ="complexity-item "> Worst Complexity : </ span > < span class ="complexity-value "> N * log(N)</ span >
104
+ </ li >
105
+ < li class ="algo-info ">
106
+ < span class ="complexity-item "> Average Complexity : </ span > < span class ="complexity-value "> N * log(N)</ span >
107
+ </ li >
108
+ < li class ="algo-info ">
109
+ < span class ="complexity-item "> Best Complexity : </ span > < span class ="complexity-value "> N * log(N)</ span >
110
+ </ li >
111
+ < li class ="algo-info "> < span class ="complexity-item "> Space Complexity : </ span > < span class ="complexity-value "> 1</ span > </ li >
112
+ < li class ="algo-info "> < span class ="complexity-item "> Method : </ span > < span class ="complexity-value "> Selection</ span > </ li >
113
+ < li class ="algo-info "> < span class ="complexity-item "> Stable : </ span > < span class ="complexity-value "> No</ span > </ li >
114
+ </ ul >
115
+ </ span >
100
116
</ div >
101
117
102
118
< div id ="insertion-info " class ="algo-container hidden ">
You can’t perform that action at this time.
0 commit comments