Why all test cases are not passing
Hello @anonymous_pk7
Your code produces wrong output for the test case
4
1 1 1 1
3
It prints the same triplet {1, 1, 1} two times, while it should only once.
If you still need any help, leave a reply to this thread and I will help you out.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.