LintCode(easy)合并排序数组

来源:互联网 发布:淘宝怎么直播呀 编辑:程序博客网 时间:2024/05/19 02:17
class Solution {public:    /**     * @param A and B: sorted integer array A and B.     * @return: A new sorted integer array     */    vector<int> mergeSortedArray(vector<int> &A, vector<int> &B) {        // write your code here        for(auto c:A)        B.push_back(c);        sort(begin(B),end(B));        return B;    }};
0 0
原创粉丝点击