![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
data structure
lingxian55
这个作者很懒,什么都没留下…
展开
-
单链表c++实现
单链表 LinkList.cpp,实现链表插入遍历 Linklist.cpp // // Created by lingxian on 2019/9/5. // #include "LinkList.h" template <typename T> struct node{ node *next= nullptr; T data; }; template <typ...原创 2019-09-05 18:33:38 · 388 阅读 · 0 评论 -
双链表
双链表 在单链表的基础上结点多加一个前一个结点的指针 所有在插入的时候不用遍历到链表的两端,可以直接获得 // // Created by lingxian on 2019/9/6. // #include <iostream> #include "DoubleLinkList.h" template<typename T> struct node{ node *...原创 2019-09-06 20:06:42 · 112 阅读 · 0 评论