随笔分类 - 0x1100 数据结构
摘要:我们使用python 代码来生成一个二叉树遍历图例 在代码中依次输入的前序遍历 # input Enter preorder traversal (space-separated, use 'None' for null nodes): 1 2 4 None None 5 None None 3 6
阅读全文
摘要:尾插法 //实现方式 Node* createListTailInsert() { Node* head = (Node*)malloc(sizeof(Node)); // 创建头节点 head->next = NULL; int n, data; printf("请输入要插入的节点数: "); s
阅读全文

浙公网安备 33010602011771号