I first had a list of size 8, then 4, then 2, but then I had another problem of size 2.
首先是一个有8个元素的序列,接着变成了4个元素,接着2个元素,然后我就碰到了有2个元素的另一个问题。
So compare the front of this list which is 4 2 against the front of this list which is 2.
因此比较这个列表中的4和4,这个列表中的。
Just to give you an example, here's one list, 1 2 4 30 3121724 Here's another list, 12430.
举个一例子来说,一个列表:3,12,17,24,另一个列表:
Advance this pointer-- this finger, to the next element of the list which is 4, make the comparison.
前移这个指示器--也就是这根手指,让它指向列表中的,下一个元素4,再做比较。
We don't seem to be doing that just yet, certainly not as badly, alright, so at this point in the story I have a sorted list of size 4.
当然现在我们不需要那样做,此时此刻,我已对整个问题中大小为4的列表排好序了。
应用推荐