← All problemsSign in

Nintendo And Sega

Nintendo and Sega have been friends since a very long time. One of their favorite pass times was betting in video games. This one time when they were in a gaming studio, they came across an interesting game called DOTS.The rules of the games are as follows: - N * M dots of various colours are arranged in a N x M grid. - You can draw a rectilinear curve over dots of same colour by moving your f

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