class Solution { public: vector<vector<int> > findTriplets(vector<int>& nums) { sort(nums.begin(), nums.end()); int n = nums.size(); vector<vector<int>> ret; for (int i=0; i<n-2; i++) { if (i>0 && nums[i]...