← All problemsSign in

The VC-Chain

You had a hard day and want to play little bit. The game is called "VC-Chain". One has the sequence of vowels and consonants. Each vowel or consonant is either 'a,e,i,o,u' or 'A,E,I,O,U'. The sequence is called VC-Chain if each two neighboring symbols of sequence are either 'C(consonantas)A(vowel)' or 'e(vowel)f(consonants)'. The chain can consists either of all capital leters or all small letters

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