Painting
CodeChefOpen on judge ↗
Leonardo da Vinci is preparing the background for his new painting. Since this is the computer age, he is using an electronic paper which is initially white. Paper is a MxN rectangular gird having MxN square cells. With paint(i,j) operation, his computer fills the cell(i,j) of the paper with black color. However, at any point in time, he may want to know the size of biggest black segment. Black Se
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