📅  最后修改于: 2022-03-11 14:52:41.598000             🧑  作者: Mango
n <- Maxindex - 1
REPEAT
NoMoreSwaps <- TRUE
FOR j <- 1 TO n
IF MyList [j] > MyList [j + l]
THEN
ENDIF
END FOR
n <- n - 1
Temp .... MyList[j)
MyList[j] <- MyList[j + 1]
MyList[j + 1] .... Temp
NoMoreSwaps <- FALSE
UNTIL NoMoreSwaps TRUE