Not getting if N = 1. And I think the example test case explanation is wrong.
Not getting how the area is 2.
Thankyou
Not getting if N = 1. And I think the example test case explanation is wrong.
Not getting how the area is 2.
Thankyou
Yeah, for the sample cases I think the maximum area will be 6.
Area between (2, 2) (2, 4) and (5, 2) (5, 4)
what if N = 1.
I’m not getting that.
Practically, the condition should be N >= 2
but for what it’s worth, print x*y
for N = 1
Maybe there’s some internal error in the question.
P.S. the code’s correct.