![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试
文章平均质量分 76
卖火柴的淙淙
这个作者很懒,什么都没留下…
展开
-
各种排序算法(插入、交换、选择、归并)
#include #include using namespace std;const int N = 10;/********************** 插入排序 **********************/// 简单插入排序 O(n2)void InsertSort(int *a){ int i,j,temp; for(i = 1;i < N;i ++原创 2014-10-05 10:22:03 · 566 阅读 · 0 评论 -
二叉树四种遍历(前序、中序、后序、层序)
#include #include #include using namespace std;struct BiTreeNode{ char data; BiTreeNode *Lchd; BiTreeNode *Rchd;};// 前序创建二叉树BiTreeNode* CreateTree(){ char input; cin >>原创 2014-10-05 09:49:23 · 606 阅读 · 0 评论