i am using stl.
it is failing for the first two testcases
(link to my code)
Tricky permutation
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
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.