Depending on the length of the input array, Timsort may use either a combination of Insertion and Merge sort or Insertion sort only. Write the maximum number of elements in the array so that it would be sorted by Insertion sort only.
sort() under the hood
Array length
Report a typo
Enter a number
___
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.