会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
su-1007
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2023年4月12日
15.72011年42题真题_查找两个序列A和B的中位数
摘要: #include <iostream> int MidSearch(int *A,int *B,int n) { //分别表示序列A和序列B的首位数,末位数和中位数,s是start简写,d是end简写 int s1=0, d1 = n - 1, m1, s2 = 0, d2 = n - 1, m2;
阅读全文
posted @ 2023-04-12 21:12 ha_1007
阅读(58)
评论(0)
推荐(0)
2023年4月11日
15.6二叉排序树删除实战
摘要: #include<stdio.h> #include<stdlib.h> typedef int KeyType; typedef struct BSTNode{ KeyType key; struct BSTNode *lchild,*rchild; }BSTNode,*BiTree; //非递归
阅读全文
posted @ 2023-04-11 15:12 ha_1007
阅读(52)
评论(0)
推荐(0)
15.5二叉排序树原理及建树实战
摘要: #include<stdio.h> #include<stdlib.h> typedef int KeyType; typedef struct BSTNode{ KeyType key; struct BSTNode *lchild,*rchild; }BSTNode,*BiTree; //非递归
阅读全文
posted @ 2023-04-11 14:21 ha_1007
阅读(47)
评论(0)
推荐(0)
2023年4月10日
15.4折半查找原理及实战
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> typedef int ElemType; typedef struct { ElemType* elem; //整型指针 int TableLen; //存储动态数组里边元素的个数 }SST
阅读全文
posted @ 2023-04-10 21:28 ha_1007
阅读(48)
评论(0)
推荐(0)
15.3顺序查找及实战
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> typedef int ElemType; typedef struct { ElemType *elem; //整型指针,申请的堆空间的起始地址存入elem int TableLen; //
阅读全文
posted @ 2023-04-10 20:11 ha_1007
阅读(54)
评论(0)
推荐(0)
课时14作业2
摘要: Description 读取字符串abcdefghij,然后层次建树建立一颗二叉树,然后中序遍历输出 hdibjeafcg,后序遍历输出 hidjebfgca,层序遍历输出abcdefghij,注意不要输出汉字 Input abcdefghij Output 中序遍历输出hdibjeafcg,后序遍
阅读全文
posted @ 2023-04-10 17:07 ha_1007
阅读(58)
评论(0)
推荐(0)
课时14作业1
摘要: Description 读取字符串abcdefghij,然后层次建树建立一颗二叉树,然后前序遍历输出abdhiejcfg,注意不要打印前序遍历几个汉字 Input abcdefghij Output abdhiejcfg Sample Input 1 abcdefghij Sample Output
阅读全文
posted @ 2023-04-10 16:54 ha_1007
阅读(38)
评论(0)
推荐(0)
2023年4月9日
14.7.2014年41题真题讲解
摘要: function.h // // Created by 93757 on 2023/3/21. // #ifndef INC_1_TREE_FUNCTION_H #define INC_1_TREE_FUNCTION_H #include <stdio.h> #include <stdlib.h>
阅读全文
posted @ 2023-04-09 17:52 ha_1007
阅读(43)
评论(0)
推荐(0)
14.6二叉树的层序遍历实战
摘要: function.h // // Created by 93757 on 2023/3/21. // #ifndef INC_1_TREE_FUNCTION_H #define INC_1_TREE_FUNCTION_H #include <stdio.h> #include <stdlib.h>
阅读全文
posted @ 2023-04-09 16:45 ha_1007
阅读(52)
评论(0)
推荐(0)
13.7_link_queue
摘要: #include <iostream> #include <stdlib.h> typedef int elemtype; typedef struct link_node{ elemtype data; struct link_node *next; }link_node; typedef str
阅读全文
posted @ 2023-04-09 15:46 ha_1007
阅读(48)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告