Regarding subsequences

what can i do if want to get only side by side chars only…like if 123 is there then ans can be “”,1,2,3,12,23,123…here 1,3 should not be included…how can i do that

@Narasimha,
you can try and maintain another variable for that.

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.