intSolution::minimize(const vector<int> &A, const vector<int> &B, const vector<int> &C){ int i = 0, j = 0, k = 0; int n = A.size(), m = B.size(), l = C.size(); int res =INT_MAX; while(i < n and j < m and k < l) { res = min(res, max({abs(A[i]-B[j]), abs(B[j]-C[k]), abs(C[k]-A[i])})); if(A[i] <= B[j] and A[i] <= C[k] and i + 1 < n) i++; elseif(B[j] <= A[i] and B[j] <= C[k] and j + 1 < m) j++; elseif(C[k] <= A[i] and C[k] <= B[j] and k + 1 < l) k++; elsebreak; } return res; }