with input abcd my output is “abcd abc abd ab acd ac ad a bcd bc bd b cd c d 16” whereas the output must be printed in the reverse order
Output in reverse order
Reversing the order of the recursive calls should do the trick.
If you don’t understand this then please share your code using ide.codingblocks.com and I can point out the exact lines where you need to make the changes.
Also share the HackerBlocks problem link so I can refer to the question.
Problem - https://hack.codingblocks.com/contests/c/916/353
My code - https://ide.codingblocks.com/s/92743
@rajanpanda
Your updated code - https://ide.codingblocks.com/s/93347
Just moved the order of recursive calls.
Hey Vijit .
Since you are not responding to this thread I am marking this doubt as resolved. You can reopen this thread anytime again if your doubt persists.
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.
My code passed all the test cases. Thank you.
I cannot access the link to give you a feedback. But I appreciated your work by liking all your replies.