A.n-i+1 B.i C.i-1 D.n-i
A.O(n) B.O(1) C.O(K) D.O(log(n))
A.最壞O(n),最好O(1) B.O(n) C.最壞O(n),平均O(1) D.O(1)