首页 > Term: gnome sort
gnome sort
Put items in order by comparing the current item with the previous item. If they are in order, move to the next item (or stop if the end is reached). If they are out of order, swap them and move to the previous item. If there is no previous item, move to the next item.
0
创建者
- GeorgeV
- 100% positive feedback