摘要: 如下: https://www.zhihu.com/question/401303485 链表只能用指针实现,故为存储结构 栈可以用链式也可以用数组实现,故为逻辑结构 阅读全文
posted @ 2023-08-07 15:14 TLSN 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 一、数组实现二叉树(下标从0开始) #include <stdio.h> typedef struct _TreeNode{ int data; bool IsEmpty; //结点是否为空 // 因为我们的二叉树不一定是满二叉树,中间可能有一些节点不存在 // 值为1代表空 }TreeNode; 阅读全文
posted @ 2023-08-07 10:09 TLSN 阅读(90) 评论(0) 推荐(0) 编辑