Unique Characters String

Hi sir,
I don’t understand what’s wrong with my code. It is giving run time error.

Thanks in advance.

Hey @nitisha38
Please share your code in Coding Blocks Ide :slight_smile:

Hey @nitisha38
Code looks good to me , do one thing only add string to current string if it contains unique characters other than current string only
This way no. of calls will be reduced for larger strings .

Sir, I think the problem is about input format. can you tell input format of hidden testcases?

Hey @nitisha38
Ech string is in new line :
like this
4
cha
r
act
ers

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.