题解列表

筛选

标准二叉树遍历 (C++代码)

#****使用create函数递归来构建二叉树,show函数实现后序的遍历,代码如下**``#includeusingnamespacestd;constintnum=30;intlen;structnode{//节点建立chardata;node*lchild;node*rchild;};charp

二叉树遍历-题解(C++代码)

```cpp#include#includeusingnamespacestd;//定义一个二叉树的结构体typedefstructTree{chardata;structTree*lchild;structTree*rchild;};Tree*create_Tree(stringp,

24.重症病人优先 (C++代码)只做最好的思路!

听了老师傅讲解了堆之后,感觉没啥子新的收获,因为堆的代码没怎么接触过,本来想着用别的办法解决这题的,但是吧,sort排序,不方便接连选出第m个元素以及删除元素都是麻烦,用vector容器,碰上结构体,又不好操作,后来看了大神网友的代码,跟着大神码了一遍(堆是真的比较难~~),

大小写转换-题解(C++代码)

```cpp#include#include#includeusingnamespacestd;intmain(){chara[80];while(gets(a)){if(strcmp(a,"Endoffile")){intlen=strlen(a);for(inti=0;i='a'&&a[i]