Algorithms: Difference between revisions
From Pumping Station One
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
Sample Input : [ 8, 3, 9, 0, 2, 7, 4, 5 ] | Sample Input : [ 8, 3, 9, 0, 2, 7, 4, 5 ] | ||
Sample Output : [ 0, 2, 3, 4, 5, 7, 8, 9 ] | Sample Output : [ 0, 2, 3, 4, 5, 7, 8, 9 ] | ||
| Line 61: | Line 62: | ||
###from previous number in array, print in natural order. | ###from previous number in array, print in natural order. | ||
</syntaxhighlight> | </syntaxhighlight> | ||
'''HeapSort Algorithm''' | |||
---- | |||
=== Which Algorithms Are Best Suited for Which Tasks === | === Which Algorithms Are Best Suited for Which Tasks === | ||