Job for Bounties

getting wrong answer , please let me know whats wrong in my code

Hi pls explain ur step wise approach

https://ide.codingblocks.com/s/627005 please look into it , i have explained my approach

ur logic is not correct… refer this https://www.geeksforgeeks.org/length-of-the-longest-valid-substring/

whats wrong in my logic please tell me

try to dry run ur code on sample input… u will get to know ur mistake…

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.