The length of a list is cached in each node (O(1)). Indexing requires to iterate the contents of the lis (O(n)). Vectors: A vector is a collection of values ...
確定! 回上一頁