← All problemsSign in

Help Harry Potter

Harry Potter has been very busy fighting dementors in Hogwarts. He wants Hagrid to find him a new flying broom. But Hagrid will only help Harry Potter if he will solve this problem: There is a string $S$ with all Uppercase English Letters. You have to concatenate and print all the characters which are present in the odd positions in the string. But be careful, as it is 1-based Indexing. ### In

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