C Program For HEAP Sort In Ascending Order Also Show Complexity
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Output:
Enter no of elements : 6
Enter the nos :-89
0
12
5
+56
78
Heap array :78 12 56 -89 5 0
The sorted array is: -89 0 5 12 56 78
Best case =Avg case = Worst case = o(n log)
need an explanation for this answer? contact us directly to get an explanation for this answer