Objective
Implement a function that merges two already sorted integer runs into out, ascending, taking the value from left whenever the two fronts are equal.
Steps
$ merge_runs({1, 3, 5}, 3, {2, 4, 6}, 3, out)
1 2 3 4 5 6
$ merge_runs({10, 20, 30}, 3, {1, 2, 3}, 3, out)
1 2 3 10 20 30
$ merge_runs({1, 4, 4, 7}, 4, {2, 4, 4, 9}, 4, out)
1 2 4 4 4 4 7 9
$ int out[3] = {-1, -2, -3}; merge_runs(left, 0, right, 0, out);
-1 -2 -3
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Implement a function that merges two already sorted integer runs into out, ascending, taking the value from left whenever the two fronts are equal.
Steps
$ merge_runs({1, 3, 5}, 3, {2, 4, 6}, 3, out)
1 2 3 4 5 6
$ merge_runs({10, 20, 30}, 3, {1, 2, 3}, 3, out)
1 2 3 10 20 30
$ merge_runs({1, 4, 4, 7}, 4, {2, 4, 4, 9}, 4, out)
1 2 4 4 4 4 7 9
$ int out[3] = {-1, -2, -3}; merge_runs(left, 0, right, 0, out);
-1 -2 -3
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code