what am I doing wrong here?
SanketAndStrings
This has a different approach. Can you please explain where am I going wrong?
Exactly. So what am I doing wrong?
your code doesn’t find the largest possible answer . Go for the two pointer approach
what am I doing wrong here?
This has a different approach. Can you please explain where am I going wrong?
Exactly. So what am I doing wrong?
your code doesn’t find the largest possible answer . Go for the two pointer approach