- 博客(10)
- 资源 (4)
- 收藏
- 关注
原创 03-树3 Tree Traversals Again
03-树3 Tree Traversals Again #include<stdio.h> #include<stdlib.h> #include<cstdio> #include<iostream> #include<stack> #include<queue> #include<string.h> usi
2017-09-28 16:05:53 220
原创 List Leaves
03-树2 List Leaves #include<cstdio> #include<iostream> #include<stack> #include<queue> using namespace std; #define N 20 #define Null -1 queue<int> q; struct TreeNode {...
2017-09-26 17:36:56 173
原创 二叉树的遍历
#include<stdio.h> #define ElemType int typedef struct BiTNode { ElemType data; struct BiTNode *lchild, *rchild;}BiTNode,*BiTree;void PreOrder(BiTree bt)//先序遍历二叉树 { if(bt!=NULL) {
2017-09-26 16:04:44 128
原创 树的同构
树1 树的同构#include<stdio.h> #define N 20 #define Null -1 int First; struct TreeNode { char Element; int Left,Right; }Tree1[N],Tree2[N];int main() { int BuildTree(struct TreeNode T[]); int
2017-09-25 16:53:40 284
转载 02-线性结构2 一元多项式的乘法与加法运算(20 分)
02-线性结构2 一元多项式的乘法与加法运算(20 分)#include<stdio.h> #include<iostream> #include<algorithm> using namespace std; struct node { int a,b; }f1[1010]; int f2[1010]={0}, f[2010]={0};int main() { int n1
2017-09-14 21:55:55 435
转载 02-线性结构4 Pop Sequence(25 分)
02-线性结构4 Pop Sequence(25 分)#include<vector> #include<stack> #include<stdio.h> #include<algorithm> #include<iostream> using namespace std; int m,n,k; int check(vector<int> v) { int i=0; int num=
2017-09-14 21:53:47 217
原创 两个有序链表序列的合并
两个有序链表序列的合并#include <stdio.h> #include <stdlib.h>typedef int ElementType; typedef struct Node *PtrToNode;struct Node { ElementType Data; PtrToNode Next; }; typedef PtrToNode List;List Read();
2017-09-12 22:57:00 495
原创 时间函数
头文件 #include<time.h>clock_t start,stop; double t; start=clock(); //函数 stop=clock(); t=(double)(stop-start)/CLK_TCK;
2017-09-04 21:38:39 178
原创 最大子列和
最大子列和1#include<stdio.h> int main() { int n,a,i; int sum,maxsum; sum=maxsum=0; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&a); sum+=a; if(sum>maxsum
2017-09-04 14:50:34 221 1
TCP&UDP&串口通信助手
2020-02-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人