please explain 18th line
String remove idnetical characters
@Muazul-Hasan-1306054032879326 basically prev 0 se shuru ho raha hai so jab bhi diff character mile a[prev] pe daaldiya (current denotes present element) aur prev++ kardiya
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.