RK and his Crush
CodeChefOpen on judge ↗
In CEG, a guy named Ravi asked his friend Jaya Surya to suggest him a gift so that he can give that to his crush on Valentine's Day 2018. Since Jaya Surya is a coder,he suggested to give her a string consisting of only characters R and I ( since both Ravi's name and her crush's name start and end with R and I :P ) So on valentine's day, Ravi gave this string S to his crush. But she wanted that st
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