蜻蜓FM笔试总结
来源:互联网 发布:软件培训计划 编辑:程序博客网 时间:2024/06/08 08:19
#include <iostream>#include <fstream>#include <cstdio>#include <string>#include <cstdlib>#include <cctype>#include <cstring>#include <cmath>#include <algorithm>#include <vector>#include <string>#include <sstream>#include <map>#include <set>#include <queue>#include <stack>#include <numeric>#include <iomanip>#include <bitset>#include <list>#include <stdexcept>#include <functional>#include <utility>#include <ctime>using namespace std;vector<int> len;struct node{int data;struct node *left;struct node *right;};int isruledtree(node* root,int length){if(root!=NULL){if((root->left==NULL)&&(root->right==NULL)){//叶节点len.push_back(length);}else{isruledtree(root->left,length+1);isruledtree(root->right,length+1);}}return 0;}int main(){//freopen("input.txt","r",stdin);//freopen("output.txt","w",stdout);struct node a,b,c,d,e;a.data=5;a.left=&b;a.right=&c;b.data=3;b.left=&d;b.right=&e;c.data=10;c.left=NULL;c.right=NULL;d.data=2;d.left=NULL;d.right=NULL;e.data=3;e.left=NULL;e.right=NULL;isruledtree(&a,0);for(vector<int>::iterator it=len.begin();it!=len.end();++it){printf("%d",*it);}}
遍历二叉树时,叶子到根节点的距离怎么计算
两台主机传输一个二叉树,怎么编解码
一个100亿个整形数字的文件,取文件中的中位数,内存不超过512MB。
快速排序的空间复杂度
死锁是针对什么情况
一个递归函数的时间复杂度问题
快速排序、堆排序的空间复杂度
- 蜻蜓FM笔试总结
- 蜻蜓FM刷活跃度实现原理
- 仿蜻蜓FM专辑页面滑动特效
- nodejs爬取蜻蜓fm的歌曲
- 涨姿势了,蜻蜓FM源码剖析
- 蜻蜓FM如何诈骗投资人和广告主源代码剖析
- 蜻蜓FM 涉嫌诈骗投资人和广告主源代码剖析
- 使用go语言来下载蜻蜓fm上的歌曲,效率感觉还行
- ABAP FM总结
- 蜻蜓FM2014年校招笔试题目 - 规则二叉树
- FM
- FM
- FM
- 对ALV, FM形式进行总结
- 2015年3月荔枝FM前端笔试题
- Android笔试总结笔试
- 笔试总结
- 笔试总结
- gettimeofday() -- 获取当前时间
- 安装搜狗输入法
- (xcode5.0 DEV target:iOS5.0) Could not find a storyboard named 'Main' in bundle
- HTML标签的英文全称与中文释义
- 五、让make自动推导
- 蜻蜓FM笔试总结
- delphi ListView
- #linux命令收集#find
- ajax接收xml数据(简单的注册案例)
- liunx 解压缩和压缩小记
- Android游戏快速入门(二):绘制动态文字和图片
- [每天一个Linux小技巧] makefile 调试小技巧
- Android Push Notification实现信息推送使用
- LINUX和windows下如何判断CPU和系统是32位还是64位