The festival of colors
CodeChefOpen on judge ↗
During Holi, colors are always in demand. Every type of colors are available in the market and there are many options to choose from. One of the Shopkeeper in Deoghar is decorating his shop for this upcoming HOLI, on 6th March'15. There are N number of plates available to the shopkeeper.The Shopkeeper has only two different colors, RED and GREEN. He wants to arrange it in a line so that no two GR
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