- 博客(3)
- 收藏
- 关注
原创 LeetCode: 继续easy题12
Subtree of Another Tree class Solution { public: bool isSame(TreeNode* s, TreeNode* t){ if(!s && !t) return true; if(s && t) return (s-&g...
2018-03-21 06:41:22 335 1
原创 LeetCode: 继续easy题11
Find Mode in Binary Search Tree """ 二叉树的递归,迭代中序遍历。 Morris 遍历: https://www.zhihu.com/question/21556707 """ Base 7 """ """ class Solution { public: string convertToBase7(int num) {
2018-03-16 04:50:30 418
原创 LeetCode: 继续easy题10
Assign Cookies """简单 """ class Solution { public: int findContentChildren(vector<int>& g, vector<int>& s) { sort(g.begin(), g.end()); sort(s.begin(), s.end()..
2018-03-12 08:40:45 304
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人