Current location - Training Enrollment Network - Mathematics courses - Mathematical arrangement size
Mathematical arrangement size
Language Description: Example: (The original array is12 3)

The first two numbers are greater than the size, greater than the first and less than the last 1

The last two numbers are greater than the first two numbers and less than the last two numbers 1

(At this time, the minimum number is at the end, and then only the first two numbers need to be compared. ) 1 minimum, ranking last.

Compare the first two numbers again, the big one comes first and the small one comes second.

The core idea is the so-called "bubble method", but if you are a senior one, don't emphasize this. Are you interested in Baidu Encyclopedia to see "bubble sorting"

/view/ 1663338.htm