Can you exolain the sample test case given

As I have understood, the rectangle with coordinates (5,2) and (2,4) should have the largest area=6

Hi rohan
here x cord. tells col no. and y cord. row no.
sample test case :
3
1,1
2,4
5,2
size of matrix 4 x 5
RRRRR
RRRRR
R* RR
R
R*R
R : river

  • : land
    Max possible area 2 x 1 = 2

Hope it helps
Mark resolved if satisfied :slight_smile: