Better-approach for sanket and strings

please review my code i pass all test case but need better approach with detail explanation…or code

thanks in advance

@Diwyanshu
Have a look at this thread

please review my code i have done according to you …
but one test - failed

@Diwyanshu
This is the test case
Try to figure out the error once
Q : 58
aabbabaabaaababaaaaaaaaaaabaaaabaababaabbabbaaaabaaaaaaaaaaaaaabbbaaaaaaabbbbaaaaaaaaaaabaaaaaaaaaba
A : 100

thank you bhaiya for test-case did it :heart_eyes:

1 Like