当前位置:网站首页>What is the difference between ArrayList and LinkedList?

What is the difference between ArrayList and LinkedList?

2022-06-23 03:33:00 , country

The most obvious difference is ArrrayList The underlying data structure is an array , Support random access , and LinkedList The underlying data structure of is double
Circular linked list , Random access is not supported . Using subscripts to access an element ,ArrayList The time complexity of is O(1), and LinkedList
yes O(n).
原网站

版权声明
本文为[, country]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211734217399.html