Tricky permutation

i am using stl.
it is failing for the first two testcases


(link to my code)

Hi @shameek.agarwal

The character array that you are using might be causing an overflow error, instead you can make use of string.

Modified code for reference : https://ide.codingblocks.com/s/198141
Hope it Helps.

1 Like

Hi @shameek.agarwal

If your query is resolved, please mark it as resolved.

Thanks

@shameek.agarwal
Please mark your doubt as solved.

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.