← All problemsSign in

COLOR IT

There are two streets. First street has $N1$ houses. Second street has $N2$ houses. There are no connections between houses inside street1 and also street2. Some houses in street1 are connected to some houses in street2. The houses are colored either red(R) or blue(B) or is colorless (U). Our task is to color connections in between houses in street one and two. To paint a connection red it tak

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