卡洛饿了
卡洛饿了
全部文章
分类
HTML(5)
MYSQL数据库(1)
排序(1)
数据结构(5)
王道考研机试(1)
题解(7)
高考(1)
归档
标签
去牛客网
登录
/
注册
卡洛饿了的博客
全部文章
(共21篇)
二叉树相似
递归判断两棵树是否相似bool IsSemblable2(BiTree T1,BiTree T2){ bool leftS = false,rightS = false; //用来接受子树返回的信息,此步骤可不写 ...
2020-06-15
0
778
数据结构简答知识点
前序序列、中序序列,唯一确定一棵二叉树。(前序找出根节点,然后根据中序知道该根节点的左右子树,再依据左右子树的根来继续判断)后序序列、中序序列,唯一确定一棵二叉树。(后序找出根节点,然后根据中序知道该根节点的左右子树,再依据左右子树的根来继续判断)前序序列、后序序列,不能确定一棵二叉树的(无法判断根...
2020-06-15
0
607
数据结构的基础知识点
算法分析的目的:分析算法的效率。 数据结构是一门研究非数值计算的程序设计问题中计算机的 以及它们之间的和的学科。 2,算法设计的要求:可读性,正确性,健壮性,效率与储存量需求。 算法的五大特征:有穷性,确定性,可行性,输入输出性。 图的广度优...
2020-06-15
0
576
叠筐
//编译未能通过include<stdio.h> include<math.h> int n;char A,B,C; int main(){ bool frist=true; while(scanf("%d %c %c",&n,&B,&A)...
2020-02-23
0
596
报数
include<stdio.h> int n; void function(int n){ int a[4]={0},p=1,k=0; for(int i=1;p<n+1;i++) //i作为报数的数,p为要报出数的个数,当报出n个数时结束 { ...
2020-02-22
1
490
括号匹配问题
include<stdio.h> include<string.h> include using namespace std; int main(){ char list[100]={0}; //将字符串放入,每个空间中放单个字符 while(scanf(...
2020-02-19
0
442
Repair the wall
include<stdio.h> include include using namespace std; int main(){ long int L,N,list[600]; while(scanf("%d %d",&L,&N)!=EOF) { ...
2020-02-18
0
638
迷瘴
include<stdio.h> include using namespace std; int main(){ int C; while(scanf("%d",&C)!=EOF) { int n; for(int i=0;i<...
2020-02-18
0
530
今年暑假不AC?
include<stdio.h> include using namespace std; struct Pro{ int sta; int end;}pro[100]; bool cmp(Pro a,Pro b){ if(a.end>b.end)return 0...
2020-02-18
1
494
sort
include<stdio.h> int n,m,f,list[1000001]={0}; int main(){ while(scanf("%d %d",&n,&m)!=EOF) { for(int i=0;i<n;i...
2020-02-17
1
398
首页
上一页
1
2
3
下一页
末页