class Solution { public: void merge_sort(vector<int>& vec, int l, int r, int& res) { if(l >= r) return; int mid = (l + r) / 2; merge_sort(vec, l, mid, res); merge_sort(vec, mid + 1, r, res); int i = l, j = mid + 1, k = 0; ...