only working for the test case given in the example
Dictionary order(larger) problem
Hey @bhattanurag426 for input: acb
Expected output is:
bac
bca
cab
cba
Yours is giving is:
cab
cba
bca
bac
Do what, store each output sting in a vector of string, and then sort them. Then print that string vector, all your test cases will get passed.
sir but we only need to print the string lager than the given string
Yes, do it this way
got it sir…
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.