// Triplet Family Similar to 3 Sum or Triplets Sum in the Array class Solution { public: bool findTriplet(vector& arr) { // Your code sort(arr.begin(),arr.end()); // O(n*log(n)) // O(n^2) for(int i = arr.size()-1;i>=0 ;i--){ int j = 0, k = i-1; while(j arr[i]) k--; else if(sum
// Triplet Family Similar to 3 Sum or Triplets Sum in the Array
class Solution {
public:
bool findTriplet(vector& arr) {
// Your code
sort(arr.begin(),arr.end()); // O(n*log(n))
// O(n^2)
for(int i = arr.size()-1;i>=0 ;i--){
int j = 0, k = i-1;
while(j arr[i]) k--;
else if(sum