← All problemsSign in

Painting Blocks

The kindergarten teacher has told Sakshi to paint all the blocks in the drawing sheet. The drawing sheet of Sakshi is represented as a matrix n*m blocks, where the rows are numbered from 1 to n and columns are numbered from 1 to m. Sakshi has decided that she will paint blocks only horizontally along a row at a time.In other words, the start and the end points of her filling up blocks are (r,c1)

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