![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
dongchangzhang
哈哈哈哈
展开
-
Median of Two Sorted Arrays
4. Median of Two Sorted Arrays问题描述 计算两个排好序的数组的中位数我的解答首先merge两个数组然后求解中位数class Solution {public: double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) { vector<int> tmp;原创 2016-10-12 19:08:25 · 279 阅读 · 0 评论 -
Generate Parentheses
22. Generate Parentheses问题描述 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ “((()))原创 2016-10-12 18:56:15 · 261 阅读 · 0 评论