← All problemsSign in

RIYA AND STRINGS

Riya loves Merge Sort especially because it selects the median value of the array as pivot.Today she has got a new problem for her brother as she was not able to solve it. She wants to know the given a String S of lower-case English alphabets ,what would be the new String generated if we perform the following operations- Pick the middle character if the length is odd or if the length is even pick

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