Impersonating Palindromes
CodeChefOpen on judge ↗
A palindrome is a string that reads the same forward and backward, eg., madam and racecar. Joey can't read properly and thinks that some characters look the same. For example, U and V look alike. Thus, Joey thinks that UABAV is a palindrome since it reads the same forward and backward. You are given the characters that look alike and a string S. You need to check whether Joey thinks S is a palind
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