![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
b_数据结构与算法学习
b_数据结构与算法学习
zhouyanjun_
一直在学习。。。
展开
-
数据结构——链表有关
package com.mj; import com.sun.xml.internal.ws.api.pipe.NextAction; /** * 链表中每一个元素称为结点 * @author zhouyanjun * @create 2020-07-02 16:35 */ public class LinkedList<E> extends AbstractList<E> { private Node<E> first; //节点也应该是一个类。内原创 2020-07-02 22:47:24 · 80 阅读 · 0 评论 -
数据结构——动态数组有关
动态数组 package com.mj; public class ArrayList { /** * 元素的数量 */ private int size; /** * 存放所有的元素 */ private int[] elements;//数组类型 private static final int DEFAULT_CAPACITY = 10;//java中写成常量的形式.静态保证这个变量在内存中只有一份 private static final int ELEMENT_原创 2020-06-27 17:20:35 · 69 阅读 · 0 评论