← All problemsSign in

Cow Picker

Due to the massive increase of cows in JEC's campus, Principal now wants to chase them out, The field behind the admin block is divided into a grid of WxW size and at some cells of the grid there are cows, Principal wants to remove exactly 4 in such a way that the 4 cows form a rectangle in the grid. if the grid is like . x . . x . x x . . x . . . . . x x . x . . . . . where x denote

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