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