Smart Keypad -1 error

I am sorting the subsequences as mentioned in the problem but it is somehow failing a test case can you figure out whats wrong with my code .

i am not so confident in vector yet and i had already created array in the above code so am i supposed to remove the sort function.

@Vivek-Pandey-2129725577345937
hey vivek here is your working code link - https://ide.codingblocks.com/s/174059

clarity-
a) actually they don’t want to sort all strings .
… let understand this line The letter that appears first in the code should come first
… for example if n=2 then mapping corresponding to 2 is ‘abc’ so u need to make sure that you print a first then b then c that’s all above line concludes. no need to sort.

let me know if you have any doubt

@Vivek-Pandey-2129725577345937
hello vivek are u still facing any issue?

no thanks you solved my doubt …send me the link to commend you … @aman212yadav

1 Like

@Vivek-Pandey-2129725577345937 just mark it resolve brother