RECURSION-DICTIONARY ORDER(LARGER) Problem

Some test cases are not passing
Problem:- https://hack.codingblocks.com/contests/c/586/361
My Code:- https://ide.codingblocks.com/s/55875


Help

string can have same characters:
Test Case:
aabb

1 Like

Now i placed the result in a set. But still one test case is not passing
New Code Link:- https://ide.codingblocks.com/s/56589

every one got 75 points. Is it quite possible that test case is not correct.

1 Like

Hey Mayank, your order of output is not correct for some cases. For eg.
input:
bca

your code’s output:
cab
cba

but the expected output is:
cba
cab

hey Sanjeeta , Bt it is mentioned in question that we have to print in Dictionary order(increasing order).
https://ide.codingblocks.com/s/56755

Hey Anubhav, in the problem statement it is mentioned that we have to print all the string which are in dictionary order larger than the given string but its not mentioned that we have to print the output strings in increasing order only. https://ide.codingblocks.com/s/57150

Dictionary order means increasing order as the page number in the increasing order.
Ok , it could be language problem here nothing related to coding. Leave it.