Home > Back-end > Why is my bubble sort does not work.
Why is my bubble sort does not work.
Time:03-14
CodePudding user response:
Select_sort function operation is a local variable in a array, not with x, so is a sort of local data sorting, no memory of x start sorting, x point to namely the main function of a array,
In addition, the bubbling bubble_sort proposal to change the function name;
Select_sort selection sort, Changed to improve the readability of the code