Олимпиадный тренинг

Задача . 43016


Задача

Темы:
Very slow sorting algorithm that compares two adjacent elements in array, swapping them if not in correct (ascending or descending) order. Stops when no swaps were required.
  1. Bubble Sort
  2. Selection Sort