Pls check the code its not generating the smallest string:(

Hello @sneha23 have you watched the editorial video for this?

see this code it is well commented with the explanation.


if you have any doubt you can ask here:
Happy Learning!!

yes i did!
could u please tell me what was wrong in my code

Hello @sneha23 you are not checking for some edge cases and not handling the compairing correctly.that is why i have given you the code with complete explanation:
if you have any doubt you can ask here:
Happy Learning!!

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.