Color Sequence
CodeChefOpen on judge ↗
Charan is fond of sequences. One day he went through Breakup and was in a very depressed mood. To enlighten him his friend gave him a color pallet containing two different colors Red and Blue represented by R and B arranged in a random order. As he was fond of sequences he tried to change his mood and concentrate on other work. So he tried to sort the colors in a specified order known as Special
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