Mirror Strings
CodeChefOpen on judge ↗
Mirrored Strings Davy Jones needs to conquer a ship for his pirates. But the only rule he has to follow is to conquer only those ships whose names are partially mirrored at the end. For Example: If a ship's name is 'abxyzba' then he can conquer the ship because the string has mirrored string at the beginning and at the end i.e 'ab'. Now your job is to develop a programming code which helps Jone
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