The complexity of this solution is O(n) as all items in the list gets shifted ... element to be inserted into the list and append it into the existing list.
確定! 回上一頁