- CircularLinkedList<E> - com.github.houbb.data.struct.core.util.list中的类
-
循环链表
[(java实现)单向循环链表](https://www.cnblogs.com/sang-bit/p/11610181.html)
解决问题:约瑟夫环问题
- CircularLinkedList() - 类 的构造器com.github.houbb.data.struct.core.util.list.CircularLinkedList
-
- clear() - 类 中的方法com.github.houbb.data.struct.core.util.list.AbstractList
-
- clear() - 类 中的方法com.github.houbb.data.struct.core.util.list.AbstractListAdaptor
-
- clear() - 类 中的方法com.github.houbb.data.struct.core.util.list.ArrayList
-
- clear() - 类 中的方法com.github.houbb.data.struct.core.util.list.DoubleLinkedList
-
- com.github.houbb.data.struct - 程序包 com.github.houbb.data.struct
-
数据结构实现
(1)jdk 默认实现
(2)额外有用的实现
- com.github.houbb.data.struct.api - 程序包 com.github.houbb.data.struct.api
-
数据结构的接口
- com.github.houbb.data.struct.core - 程序包 com.github.houbb.data.struct.core
-
核心实现:
(1)模拟 jdk 实现,最好做简化和优化。
- com.github.houbb.data.struct.core.util.graph - 程序包 com.github.houbb.data.struct.core.util.graph
-
- com.github.houbb.data.struct.core.util.graph.component - 程序包 com.github.houbb.data.struct.core.util.graph.component
-
- com.github.houbb.data.struct.core.util.graph.shortestpath - 程序包 com.github.houbb.data.struct.core.util.graph.shortestpath
-
最短路径
- com.github.houbb.data.struct.core.util.graph.shortestpath.impl - 程序包 com.github.houbb.data.struct.core.util.graph.shortestpath.impl
-
- com.github.houbb.data.struct.core.util.list - 程序包 com.github.houbb.data.struct.core.util.list
-
singleLinkedList 单链表
circularLinkedList 循环链表
doubleLinkedList 双向列表
staticLinkedList 静态链表
自组织链表
稀疏表
skipList 跳表
后续可添加并发类:
copyOnWriteList
- com.github.houbb.data.struct.core.util.map - 程序包 com.github.houbb.data.struct.core.util.map
-
- com.github.houbb.data.struct.core.util.queue - 程序包 com.github.houbb.data.struct.core.util.queue
-
- com.github.houbb.data.struct.core.util.stack - 程序包 com.github.houbb.data.struct.core.util.stack
-
- com.github.houbb.data.struct.util - 程序包 com.github.houbb.data.struct.util
-
- contains(Object) - 类 中的方法com.github.houbb.data.struct.core.util.list.AbstractListAdaptor
-
- contains(Object) - 类 中的方法com.github.houbb.data.struct.core.util.list.ArrayList
-
- contains(Object) - 类 中的方法com.github.houbb.data.struct.core.util.list.DoubleLinkedList
-
遍历整个链表,判断是否存在该元素
(1)二者不为空,且相等
(2)对象为 null,且链表中也有元素为 null
(3)如果链表为 null,直接返回 false。
- containsAll(Collection<?>) - 类 中的方法com.github.houbb.data.struct.core.util.list.AbstractListAdaptor
-
- containsAll(Collection<?>) - 类 中的方法com.github.houbb.data.struct.core.util.list.ArrayList
-
- containsAll(Collection<?>) - 类 中的方法com.github.houbb.data.struct.core.util.list.DoubleLinkedList
-
是否包含所有
(1)如果结合为 null,则认为不包含。