sir I am getting wrong answer for the second test case.
I can’t think of a corner case which is getting me wrong answer. Please help with my code.
The link to my code: https://ide.codingblocks.com/s/118497
1 Count question in competitive programming course online challenge in dynamic programming
your window size is not proper, and you are considerig too many extra cases.
for a simple solution refer-;