Magical Tool
CodeChefOpen on judge ↗
### Problem Definition In a certain garden, there are three types of flowers are flourished - Red, White and Yellow, making certain linear pattern. Vikas, a gardener wants to pluck those flowers to make a bouquet. He has a magical tool which can only pluck identical flowers at a time. Further, at a time it cannot pluck singular flower. He can use this tool as many times he wants. Can you help Vi
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