Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. void MergeSort(vector<int>* input) {
  2. vector<int> out1, out2;
  3. if (input -> size() > 1) {
  4. Split(*input, &out1, &out2);
  5. MergeSort(&out1);
  6. MergeSort(&out2);
  7. input -> clear();
  8. Merge(out1, out2, input);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement