Home > Back-end >  Hope the great god to explain the problem
Hope the great god to explain the problem

Time:11-22

CodePudding user response:

Standard of bubble sort algorithm,
Each cycle outer layer, one of the most large sink, end of the cycle, sorting is completed,,,

CodePudding user response:

reference 1st floor ctrigger response:
standard bubble sort algorithm,
Each cycle outer layer, one of the most large sink, end of the cycle, sorting is completed,,,

Those for the inside is what meaning ah

CodePudding user response:

refer to the second floor m0_51795044 response:
Quote: refer to 1st floor ctrigger response:
standard bubble sort algorithm,
Each cycle outer layer, one of the most large sink, end of the cycle, sorting is completed,,,

Those for the inside is what meaning ah


The inner loop, sink a maximum value at a time,
The outer loop, run over, sorting is completed,
  • Related