We want to use Timsort on a list that includes 100 elements. Below, you have the steps of the algorithm. Your task is to put them in the correct order.
sort() under the hood
The algorithm steps
Report a typo
Put the items in the correct order
See if there are more or less than 64 elements in the list
Make sure every run is at least the size of minrun, if not, use Insertion sort to add elements
Merge all the runs two at a time
Go through the list collecting natural runs
___
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.