Parcourir la source

Update solution

master
Lachlan Jacob il y a 5 ans
Parent
révision
db5588b2e6
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1
    2
      problems/88/main.cpp

+ 1
- 2
problems/88/main.cpp Voir le fichier

#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;
}
}

Chargement…
Annuler
Enregistrer