Same outputs being printed

I realise that my code is printing redundant outputs as duplicates are present in the input. I want to conert my output array into a string and store it in a set in order to avoid this problem. Please help

hello @girishgargcool
just declare a set of vector (no need to convert vector into string).
and push all ur valid vector in that set.
and then print that set.

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.