When an array needs to reallocate storage before appending or its storage is shared with another copy, appending is O(n), where n is the length of the array.
確定! 回上一頁