设为首页 加入收藏

TOP

二叉树的非递归遍历--京东2015笔试回忆(三)
2015-07-20 17:30:16 来源: 作者: 【 】 浏览:10
Tags:京东 2015 笔试 回忆
r *argv[])
{
char s[100];
while(scanf("%s",s)==1)
{
BinTree *root=(BinTree *)malloc(sizeof(BinTree));
creatBinTree(s,root);
display(root);
cout< preOrder2(root);
cout< inOrder2(root);
cout< postOrder2(root);
cout< postOrder3(root);
cout< }
return 0;
}
首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Codeforces 328A-IQ Test(数列) 下一篇C++ STL 源码学习(之deque篇)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·About - Redis (2025-12-26 08:20:56)
·Redis: A Comprehens (2025-12-26 08:20:53)
·Redis - The Real-ti (2025-12-26 08:20:50)
·Bash 脚本教程——Li (2025-12-26 07:53:35)
·实战篇!Linux shell (2025-12-26 07:53:32)