I have generated all the subsequences but don’t know how to do it in lexicographical order.
Please someone give some hint.
Problem in lexicographical order
the problem Replace All Pi is not loading in online.codingblocks.com website. Please check and resolve the problem.
you have stored your subsequences in a list so before printing just sort the list and then print.
I want to know how to do above problem recursively. It can be done the way you suggested above.
But can it be done such that i can get lexicographic order during insertion in ArrayList only. In that case I don’t have to iterate again over arraylist to sort it.
Thanks.
have a look at this.
Hi @mohitkanodia713
as you are not responding to the doubt I am marking your doubt as resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “Ask Doubt” section, when your doubt is resolved.
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.