BubbleSort compart one time ,if need swap ,swap one time at one turn.
Select Sort compare multi times and swap only one time at one turn.
博客介绍了冒泡排序和选择排序的特点。冒泡排序每次比较,若需交换则在一轮中交换一次;选择排序在一轮中多次比较,仅交换一次。
BubbleSort compart one time ,if need swap ,swap one time at one turn.
Select Sort compare multi times and swap only one time at one turn.
152

被折叠的 条评论
为什么被折叠?