Hello, I require help in the problem Recursion-Dictionary Order(Larger). Here’s my code ->
Its giving WA in Case 2.
Need help in Dictionary Orer-Larger
Hello @saurabhpandey59373,
-
There is no need of swapping it back
-
The logic of your code is correct.
But, storing strings in set is changing the order of input:
Input:
231
expected Output:
321
312
your Output:
312
321
Modification:
Hope, this would help.
Thnx sir, I got it now.
Anytime.
Please, mark this doubt as resolved.