I saw the two algorithm implementation, the worst case, the time complexity is O (Length), which is O (n), why do you say NextElem time complexity is O (1)? Time complexity is not the worst?
Algorithm from: https://blog.csdn.net/gy99csdn/article/details/82824737
