- 博客(4)
- 收藏
- 关注
原创 C++原始指针模拟实现reverse函数
写在前面 今天笔试中有一个题目,要求将单词翻转,例如"hx hell1 liwe! asfd",根据空格来划分单词,如果单词中存在非字母,则原样输出,否则翻转输出(不能使用函数库函数) 程序 #include <iostream> #include <algorithm> #include <string> #include <string.h&g...
2019-03-04 21:11:15 1272
原创 1119 Pre- and Post-order Traversals (30 分)
目录 1119Pre- and Post-order Traversals 题目描述 解题思路 程序 1119Pre- and Post-order Traversals 题目描述 Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can ...
2019-03-01 16:37:02 2112 5
原创 AVL_tree_1123 Is It a Complete AVL Tree (30 分)
目录 1123Is It a Complete AVL Tree 题目描述 解题思路 程序 1123Is It a Complete AVL Tree 题目描述 An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees o...
2019-03-01 13:03:30 351
原创 Eulerian_1126 Eulerian Path (25 分)
目录 1126Eulerian Path 题目描述 解题思路 程序 vector中resize和reserve函数的区别 参考博客 1126Eulerian Path 题目描述 In graph theory, an Eulerian path is a path in a graph which visits every edge exactly once. Simi...
2019-03-01 10:17:49 508
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人