#include <vector> #include <algorithm> using namespace std; class Solution { public: vector<vector<int> > findTriplets(vector<int>& nums) { vector<vector<int>> res; int n = nums.size(); if (n < 3) { return res;...