← All problemsSign in

The Gift Of Raksha Bandhan

Its time of Raksha Bandhan so its compulsory for every brother to give a gift to his sister. Brother Jon is planning to give a string S of length L to his sister Arya. After receiving the gift from her brother, Arya decided to share the string with her brother Jon. String S contains characters from index 0 to index L - 1. She will select a pivot called P ie any index P(1 ≤ P ≤ L - 1) and d

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