Right, 'cause that means either I've been handed zero elements which mean there's really no work to be done or I've been handed one element which is a vacuous truth that it's sorted, right?
因为如果给出0个元素,那意味着不需要做任何事,如果给出1个元素,那显然,它是有序的,对吗?
It's one element like I claimed before it's sorted and so there's no work to be done.
当有1个元素时,在比较前就知道它是有序的,那就没必要再进行比较了。
应用推荐