Resizing takes time: A new array must be allocated, and all the elements must be copied from the existing array into the new array.

  • 改变大小需要时间:一个新的数组必须被分配,所有的元素都需要从现存的数组拷贝到新的数组里面。
目录 查词历史