Hard
Same Letter Pattern?
Two words have the same pattern if the letters of one can be replaced one-for-one to get the other (like
egg and add, but not foo and bar). No two different letters may map to the same letter. Read two words and print True or False.Input
Two lines.
Output
True or False.
Sample 1
Input
egg add
Output
True
Sample 2
Input
foo bar
Output
False
Output appears here