3 test cases failing


3 test case failing.
is there nay issue in line no 42,43

Hi @piyush.bansal8158625, can you please provide some comments so i can understand your code easily


Please check this commented code.


refer to this video for logic. I have implemented his approach for this question understanding

hi @piyush.bansal8158625, i think there is a glitch ,the solution getting accepted in codeforces is not getting accepted in hackerblocks , also ,at line 17 it should be for (int len = 1; len <= n-m; len++) instead of { for (int len = 1; len <= 1200; len++) {

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.