Joker and Batman
During a fight with the Joker, Batman's eyes lose the capability to distinguish between some pairs of colors. Each color has an integer ID from $1$ to $N$. There are $M$ lists where each color belongs to exactly one list. Batman can distinguish colors belonging to different lists, but he cannot distinguish colors belonging to the same list. Given a strip of $L$ colors, find the different number
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