![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
天将明兮
小白
展开
-
交叉链表 C++ 返回交叉节点
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct ListNode { int val; ListNode* next; ListNode(int value, ListNode* n) : val(value), next(n) { } }; cl...原创 2019-12-06 17:31:18 · 163 阅读 · 0 评论 -
双向链表实现C++
typedef struct DoubleListNode{ int val; DoubleListNode* next; DoubleListNode* pre; DoubleListNode(int value, DoubleListNode* n, DoubleListNode* p) :val(value), next(n), pre(p){} }; class MyLinked...原创 2019-12-05 16:27:21 · 106 阅读 · 0 评论