Grand Temples//////////////////////////////////////////////////////////////////////////////////

how the area is two for the example given in question…
like the empty space is present between (2,2) (2,4) (5,2) (5,4)
so the largest area should be 6 then why it is 2…

Refer this Need help with the approach GRAND Temple

For the approach, you can refer this Hint for 'Grand Temple' Problem

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.