Grand Temple Problem

Unable to understand the question.

Hi @ravig8233

In this problem you will be given points by user. For each point entire row and column will be considered as river. Now you have to find the max area present between the rivers. grandtemple
In the image you can see that grey colour row and column represents the river and now to have to code accordingly so as to find the max area present. ( which is the white area present in the image )

This is a pretty simple problem. 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)