Strongest Fighter


Please Help, 3 testcases not working.

hello @Sahilgohrisg
max can also change during sliding of window so u need to handle that as well.

refer this->

Help. https://ide.codingblocks.com/s/337474

again u r commiting same mistake.
check this->https://ide.codingblocks.com/s/337483

refer last approach of the video i shared , this problem will be solved using that technique only

Got it, thank you for the help.

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.