please suggest the changes required in this code
Duplicate character formatting
u should take a temporary string where u are storing the updated string, because i see wrong characters being inserted wherein * should be added.
I have attached my version of the code, please have a look , i have added dup function() which provides required functionality
1 Like
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.