Code https://ide.codingblocks.com/s/156009
Hackerblock https://hack.codingblocks.com/app/contests/987/p/475
Only one testcases is not passing
I tried your code, it still has same mistake.
Your code is just fine, you need to add just one or two end conditions, so that it can give you the correct output
Okay
just say try this test case & correct your mistake:-
---- 80 true 32 true 48 false false false false ------
It’s correct output should be FALSE
but your code is showing TRUE