Constructing wall in Clash of Clans
CodeChefOpen on judge ↗
Consider yourself as a chief in Clash of Clans game. You are given a village area of size m x n. There will be obstacles in the village area where the wall cannot be built. Now the task is to find the perimeter of the largest rectangular wall that can be built in the village area. (NOTE : Consider there are no buildings built, only obstacles are there in the village area. Each obstacle in the vil
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