- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode 95 Unique Binary Search Trees II
1. BST2. 动态规划/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} ...
2018-05-07 11:54:31
117
原创 LeetCode 15 3Sum Closest
1. 对数组进行排序2. 固定left most,对middle和right most进行夹逼调整3. 时间复杂度O(logN) + O(N2)class Solution { public: int threeSumClosest(vector<int>& nums, int target) { sort(nums.begin(), nums.end(...
2018-05-05 16:52:48
121
网络系统设计-交换机基本组网
2018-05-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅