1 1 4 1
Sad mate.
Simple there is no adjacent cells so no matter what the answer is 100 ;
Sounds weird but this is the way !
Happy coding
It should be min(x, y) rather than min(x, y - 1)
1 Like
Thanks man !! It worked. Got it.
Gotcha. One case cost me 100 points even after stress testing the solution to the max constraints.