摘要:
链接: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; 阅读全文
摘要:
链接: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 阅读全文
摘要:
链接: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 阅读全文
摘要:
链接: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 阅读全文
摘要:
面试题32 - I. 从上到下打印二叉树 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/zhan-de-ya-ru-dan-chu-xu-lie-lcof/ 代码: class Solution { public: bool validateStackSequences(vector<int>& pushed, v 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/bao-han-minhan-shu-de-zhan-lcof/ 代码: class MinStack { public: /** initialize your data structure here. */ stack<in 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/shun-shi-zhen-da-yin-ju-zhen-lcof/ 代码: class Solution { public: vector<int> spiralOrder(vector<vector<int>>& matri 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/dui-cheng-de-er-cha-shu-lcof/ 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo 阅读全文
摘要:
链接:https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/ 代码: /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeN 阅读全文