小编use*_*469的帖子

LinkedList不提供基于索引的访问,那为什么它有get(index)方法呢?

我理解ArrayList是基于索引的数据结构,它允许你使用索引访问它的元素但是LinkedList不是基于索引的,所以为什么它有get(index)方法允许直接访问元素?

linked-list data-structures

7
推荐指数
2
解决办法
4775
查看次数

标签 统计

data-structures ×1

linked-list ×1