The code is running fine but failing all test cases
Target sum triplets
here is the link…
@GreatCoderboy123
Your code is failing all test cases because you have added an extra comma after the a[left].
It should be like this :
cout<<a[i]<<", “<<a[left]<<” "<<"and "<<a[right]<<endl;
ok…thanks…now the test cases are correct