随笔分类 -  leetcode<easy>

虽然已经晚了,但是,没有但是……
摘要:题目描述: //利用队列 进行广度优先搜索 阅读全文
posted @ 2017-04-26 20:41 StrongYaYa 阅读(147) 评论(0) 推荐(0)
摘要:题目描述: 递归 循环 阅读全文
posted @ 2017-04-26 14:30 StrongYaYa 阅读(212) 评论(0) 推荐(0)
摘要://递归的解法 //循环的方法 很悲哀 不太会用C++ STL模板中的stack 和pair 所以用了python 阅读全文
posted @ 2017-04-26 13:38 StrongYaYa 阅读(227) 评论(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 阅读(182) 评论(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 阅读(144) 评论(0) 推荐(0)