相邻元素以字符“,”(逗号和空格)分隔。
Adjacent elements are separated by the characters ", "(comma and space).
换句话说,它没有选择深度优先(到达子代),而是遍历相邻元素。
In other words, instead of going depth-first (to the children), it goes through the adjacent elements.
地精算法总是发现第一个【两个相邻元素存在错误的顺序】,然后把他们交换。
The algorithm always finds the first place where two adjacent elements are in the wrong order, and swaps them.
应用推荐