Can someone explain the test cases given in the problem ,I am not able to understand this question…
2
2 1
1 2
how the output is 1??
Can someone explain the test cases given in the problem ,I am not able to understand this question…
2
2 1
1 2
how the output is 1??
You can only move up, down, left and right. Hence, you need an additional point at (1,1) to reach from any point to any other.
Thanks bro !!!