LintCode(easy)合并排序数组II

class Solution {
public:
    /**
     * @param A: sorted integer array A which has m elements, 
     *           but size of A is m+n
     * @param B: sorted integer array B which has n elements
     * @return: void
     */
    void mergeSortedArray(int A[], int m, int B[], int n) {
        // write your code here
       int *p=&A[0],q=m;
        for(int i=0;i

你可能感兴趣的:(LintCode)