История изменений
Исправление Kroz, (текущая версия) :
Ответ от ChatGPT
Your bug is that you’re passing values to swap() where it expects indices.
Also, your loop bounds should be border - 1 not border - 2; otherwise the last pair won’t be compared.
Исходная версия Kroz, :
Ответ от ChatGPT
Your bug is that you’re passing values to swap() where it expects indices.