#include <vector> class Solution { public: int partition(vector<int>& vec, int left, int right) { int pivot = vec[left]; int i = left + 1; for (int j = left + 1; j <= right; j++) { if (vec[j] < pivot) { swap(vec[i++], vec[...