You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description of the insert sorting contains: Когда это произойдет, это будет означать, что он будет больше всех элементов слева и меньше всех элементов префикса справа,
but the fragment of the algorithm contains the condition: a[i - 1] < a[i], which is incorrect in terms of definition and sorts arrays in descending order.
The text was updated successfully, but these errors were encountered:
rwqwr
changed the title
The description of the algorithm does not correspond to the algorithm itself
The description of the sorting algorithm by inserts does not correspond to the algorithm itself
Oct 7, 2022
rwqwr
added a commit
to rwqwr/algorithmica
that referenced
this issue
Oct 7, 2022
The description of the insert sorting contains:
Когда это произойдет, это будет означать, что он будет больше всех элементов слева и меньше всех элементов префикса справа,
but the fragment of the algorithm contains the condition:
a[i - 1] < a[i]
, which is incorrect in terms of definition and sorts arrays in descending order.The text was updated successfully, but these errors were encountered: