摘要: 题目描述: 递归求解 阅读全文
posted @ 2017-04-26 21:47 StrongYaYa 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目描述: //用一个升序的数组 构建 高度平衡的儿茶搜索树 //用递归和二分的思想 阅读全文
posted @ 2017-04-26 21:22 StrongYaYa 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目描述: //利用队列 进行广度优先搜索 阅读全文
posted @ 2017-04-26 20:41 StrongYaYa 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 递归 循环 阅读全文
posted @ 2017-04-26 14:30 StrongYaYa 阅读(201) 评论(0) 推荐(0) 编辑
摘要: //递归的解法 //循环的方法 很悲哀 不太会用C++ STL模板中的stack 和pair 所以用了python 阅读全文
posted @ 2017-04-26 13:38 StrongYaYa 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 题目描述: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally ident 阅读全文
posted @ 2017-04-26 13:02 StrongYaYa 阅读(171) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: void merge(vector& nums1, int m, vector& nums2, int n) { //从前往后插入会使迭代器失效 那就换一种思路从后往前 //归并排序李的mergesort函数 int i = m - 1; int j = n - 1; ... 阅读全文
posted @ 2017-04-26 12:45 StrongYaYa 阅读(140) 评论(0) 推荐(0) 编辑