Mischievous Friend
CodeChefOpen on judge ↗
Irshad and Sufiyan are best friends. Sufiyan is a naughty guy. Irshad has to deliver a speech in his college fest. He prepared his speech of N characters. Sufiyan changed a single word w, wherever it occurred in the speech. But later on, just before the fest he decided to tell Irshad about it. Irshad needs your help to correct his speech quickly as the time left is very less. You will be given a
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