Loading

随笔分类 -  0x1100 数据结构

摘要:我们使用python 代码来生成一个二叉树遍历图例 在代码中依次输入的前序遍历 # input Enter preorder traversal (space-separated, use 'None' for null nodes): 1 2 4 None None 5 None None 3 6 阅读全文
posted @ 2025-04-03 19:56 androllen 阅读(175) 评论(0) 推荐(0)
摘要:尾插法 //实现方式 Node* createListTailInsert() { Node* head = (Node*)malloc(sizeof(Node)); // 创建头节点 head->next = NULL; int n, data; printf("请输入要插入的节点数: "); s 阅读全文
posted @ 2025-03-21 21:22 androllen 阅读(66) 评论(0) 推荐(0)