plz can you let me know the basic approach like from where to strt
Grand Temple prblm sol
Hi @akb.tech17
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.
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 ) .
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)