![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构与算法
压萝卜
汽车系统应用工程师
展开
-
leecode 第144题: 二叉树的前序遍历 C语言完整版
#include <stdio.h>typedef struct Node{ int val; struct Node* Lchild; struct Node* Rchild;}*BTree, BTnode;/* 创建二叉树 */int CreaTree(BTree* T) { int data; scanf_s("%d", &data); if (data == 0x0) *T = NULL; else { *T = (BTree)malloc(.原创 2021-11-23 15:18:17 · 834 阅读 · 0 评论 -
Leecode 第100题 :相同的树 C语言完整版
#include <stdio.h>#include <stdlib.h>#define true 1#define false 0typedef int bool;typedef struct Node { char data; struct Node* Lchild, * Rchild;}BTnode, * BTree;/* creat binary tree. */int CreatBTree(BTree* T){ char ch; sc.原创 2021-11-17 16:34:28 · 1001 阅读 · 0 评论 -
Leecode 第94题 :二叉树的中序遍历 C语言完整版
#include <stdio.h>#include <stdlib.h>/* Binary Tree Node */typedef struct Node { int val; struct Node* Lchild,*Rchild;}BTnode,*BTree;/* Creat Binary Tree */int CreatBTree(BTree* T) { int data; scanf_s("%d", &data); if (data .原创 2021-11-17 14:49:24 · 481 阅读 · 0 评论