← All problemsSign in

Sudesh and variables

Sudesh is doing cp today. He needs to declare some variables for his code: - In the first turn, he can declare first variable as any one word. - In the subsequent turns, He declares a variable that satisfies the following conditions: - - That variable is not declared before. - - The first character of that variable is the same as the last character of the last variable declared. if any of the

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