Arrange the actions in the correct order to get a sorted array (when using the HEAPSORT method).
Heapsort
Procedure of actions
Report a typo
Put the items in the correct order
Build a binary tree from the array
Use build-heap operation to create binary heap
Perform extract_max until we extract all the elements, by storing them in an array
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.