Peter and words
CodeChefOpen on judge ↗
Peter is reading the newspaper when he suddenly starts feeling dizzy this causes the words to appear in an abnormal way. Can you check if the letters in the words he is reading are rotated or not. His dizziness causes the words to be rotated around one of the characters. Check if both the strings inputted are rotated if so print “Peter needs rest.” otherwise print the message “Is Peter fine?”
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