No Same Permutations

Custom inputs are giving the correct ans but test cases are failing…please check the code for errors…

@Anshit try your code at input like:- 10 10 13.
I think it is because your are considering the element to be of just from 0 to 9 and correspondingly converting them to ascii values.

What i will suggest you to convert it into an string using to_string(integer value) then adding to permute string for furthur recursive calls.
You can have a look at this code, i have done these for better understanding https://ide.codingblocks.com/s/229642

Feel free to ask if you have any furthur doubt in this, otherwise mark this doubt as resolved to let me know that you have solved it.

1 Like

Thank you…all the test cases run perfectly