My all test case are not passing, where am i going wrong?
All test case are not pass in char change problem
Please note that not only ‘a’ but the substring can also be only made up of ‘b’, you need to consider both cases.
in the last nested loop, i have also considered case of b also. Please check it
Yes, I see (my bad
).
Please note that you are using the same variable ‘i’ for both the loops (main loop and the nested one) also you probably want to run the second loop from i and not always from 0.
ya, all test case passed. Thank you