← All problemsSign in

Blow weed everyday

Snoop and Dogg are two very lazy brothers. To teach them a lesson of responsibility, their mother has asked them to remove weed from their garden. Assume that the garden is a grid of $MxN$ dimensions. The garden has weed grown in $K$ of these grid cells. Because, the brothers are so lazy, Snoop will only clear one row of garden whereas Dogg will only clear one column of the garden. What is the max

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start