Rock Star
CodeChefOpen on judge ↗
*8th April, 2018* After playing a sensational knock against the defending champions Mumbai Indians, Dwayne Bravo sits down to write the lyrics for his next single. He has completed the song but is not satisfied with the lyrics. To make it interesting, he decides that every line in his song must either start or end with the same word(like 'champion'). Dwayne also wants to keep his song simple,
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