摘要: 链接:https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/ 代码: /* // Definition for a Node. class Node { public: int val; 阅读全文
posted @ 2020-03-01 14:54 景云ⁿ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/fu-za-lian-biao-de-fu-zhi-lcof/submissions/ 代码: /* // Definition for a Node. class Node { public: int val; Node* n 阅读全文
posted @ 2020-02-29 22:38 景云ⁿ 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/er-cha-shu-zhong-he-wei-mou-yi-zhi-de-lu-jing-lcof/ 代码: /** * Definition for a binary tree node. * struct TreeNode 阅读全文
posted @ 2020-02-29 22:19 景云ⁿ 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof/ 代码: class Solution { public: bool verifyPostorder(vector<int>& p 阅读全文
posted @ 2020-02-28 22:09 景云ⁿ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 面试题32 - I. 从上到下打印二叉树 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x 阅读全文
posted @ 2020-02-28 21:50 景云ⁿ 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/zhan-de-ya-ru-dan-chu-xu-lie-lcof/ 代码: class Solution { public: bool validateStackSequences(vector<int>& pushed, v 阅读全文
posted @ 2020-02-27 14:23 景云ⁿ 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/bao-han-minhan-shu-de-zhan-lcof/ 代码: class MinStack { public: /** initialize your data structure here. */ stack<in 阅读全文
posted @ 2020-02-27 14:08 景云ⁿ 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/ 代码: class Solution { public: vector<int> spiralOrder(vector<vector<int>>& matri 阅读全文
posted @ 2020-02-26 10:51 景云ⁿ 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof/ 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo 阅读全文
posted @ 2020-02-26 10:41 景云ⁿ 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/ 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeN 阅读全文
posted @ 2020-02-25 19:43 景云ⁿ 阅读(91) 评论(0) 推荐(0) 编辑