← All problemsSign in

Thomas And His Friends

At a station a kid is marking the color of every boggie which can be any color from V-Violet, I-Indigo, B-Blue, G-Green, Y-Yellow, O-Orange, R-Red. Several trains come and go and is given in string S. The station master's favourite train consists of boggies with a combination of colors denoted by string F. It is noted that through the station, every hour, X boggies pass out. You just have to ment

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