摘要:
链接:https://leetcode-cn.com/problems/validate-binary-search-tree/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode 阅读全文
posted @ 2020-07-18 15:54
景云ⁿ
阅读(97)
评论(0)
推荐(0)
摘要:
链接:https://leetcode-cn.com/problems/interleaving-string/ 代码 class Solution { public: bool isInterleave(string s1, string s2, string s3) { int n = s1.s 阅读全文
posted @ 2020-07-18 10:07
景云ⁿ
阅读(85)
评论(0)
推荐(0)
摘要:
链接:https://leetcode-cn.com/problems/unique-binary-search-trees/ 代码 class Solution { public: int numTrees(int n) { vector<int> f(n + 1); f[0] = 1; for 阅读全文
posted @ 2020-07-18 09:50
景云ⁿ
阅读(53)
评论(0)
推荐(0)
摘要:
链接:https://leetcode-cn.com/problems/unique-binary-search-trees-ii/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo 阅读全文
posted @ 2020-07-18 09:38
景云ⁿ
阅读(69)
评论(0)
推荐(0)
摘要:
链接:https://leetcode-cn.com/problems/binary-tree-inorder-traversal/ 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNo 阅读全文
posted @ 2020-07-18 09:09
景云ⁿ
阅读(54)
评论(0)
推荐(0)

浙公网安备 33010602011771号