摘要:
二叉树种类 满二叉树 完全二叉树(底层连续) 二叉搜索树(节点元素有一定顺序) 平衡二叉搜索树(左子树与右子树高度差绝对值小于) 存储方式 链式存储 线式存储 二叉树的遍历 深度优先遍历 前序遍历 中左右 中序遍历 左中右 后序遍历 左右中 广度优先遍历 层序遍历 迭代法 LeetCode 144 阅读全文
posted @ 2022-09-06 14:59
hjy94wo
阅读(29)
评论(0)
推荐(0)
摘要:
class Solution { public: int fourSumCount(vector<int>& nums1, vector<int>& nums2, vector<int>& nums3, vector<int>& nums4) { unordered_map<int, int> ma 阅读全文
posted @ 2022-09-06 09:35
hjy94wo
阅读(12)
评论(0)
推荐(0)
摘要:
class Solution { public: vector<vector<int>> fourSum(vector<int>& nums, int target) { vector<vector<int>> res; sort(nums.begin(), nums.end()); for (in 阅读全文
posted @ 2022-09-06 09:27
hjy94wo
阅读(16)
评论(0)
推荐(0)