Skip to content

Latest commit

 

History

History
executable file
·
19 lines (8 loc) · 344 Bytes

File metadata and controls

executable file
·
19 lines (8 loc) · 344 Bytes

Heap Sort

Problem Statement

Write a function that takes in an array of integers and returns a sorted version of that array. Use the Heap Sort algorithm to sort the array.

Sample input: [8, 5, 2, 9, 5, 6, 3]

Sample output: [2, 3, 5, 5, 6, 8, 9]

Explanation

Solution

Check this Python code.