Buying a Land
CodeChefOpen on judge ↗
Buying a Land Rahul is in the plan of building a house amidst forest (but should not destroy the forest area). The cost of the ground remains the same though the area of the ground varies. Given a binary array ,1 represents free ground and 0 represents forest land. The ground for building the house should be of rectangle or square form. Find the maximum area in which the house can be build. I
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start