Time Complexity: O(n) since every element needs to be moved. Invoking unshift with no values has no effect on the original array. 1. 2. 3.
確定! 回上一頁