瀏覽代碼

Update solution

master
Lachlan Jacob 6 年之前
父節點
當前提交
db5588b2e6
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      problems/88/main.cpp

+ 1
- 2
problems/88/main.cpp 查看文件

#include <algorithm> #include <algorithm>


void merge(std::vector<int>& nums1, int m, std::vector<int>& nums2, int n) { void merge(std::vector<int>& nums1, int m, std::vector<int>& nums2, int n) {
int total = m + n;
while (n > 0) { while (n > 0) {
nums1[m++] = nums2[--n]; nums1[m++] = nums2[--n];
} }
} }
std::cout << " ]" << std::endl; std::cout << " ]" << std::endl;
return 0; return 0;
}
}

Loading…
取消
儲存