The explanation of the problem is really poor. We have not been told what the overall area of land is taken as.
Also if we take the area as the area between the max values of x and y coordinates then the given example test case doesn’t match the solution.
Poor explanation and wrong test case in "GRAND TEMPLE"
All we need to do is just store all the X and Y coordinates and then sort them. Then we will calculate maximum ΔX and ΔY where ΔX = (Xi -Xi-1) & ΔY = (Yi -Yi-1). Then the area will be (ΔY-1)*(ΔX-1)
But I still don’t understand the question properly, like what is the supposed area of the land ?
this is the area
(ΔY-1)*(ΔX-1)
if you still dont get it please accept the request chat option
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
thanks…i got it.