6 kyu
Check if two words are isomorphic to each other
709 of 1,469rasmus_ri
Description:
Two strings a
and b are called isomorphic if there is a one to one mapping possible for every character of a
to every character of b
. And all occurrences of every character in a
map to same character in b
.
Task
In this kata you will create a function that return True
if two given strings are isomorphic to each other, and False
otherwise. Remember that order is important.
Your solution must be able to handle words with more than 10 characters.
Example
True:
CBAABC DEFFED
XXX YYY
RAMBUNCTIOUSLY THERMODYNAMICS
False:
AB CC
XXY XYY
ABAB CD
Algorithms
Similar Kata:
Stats:
Created | Oct 9, 2017 |
Published | Oct 9, 2017 |
Warriors Trained | 2799 |
Total Skips | 57 |
Total Code Submissions | 10289 |
Total Times Completed | 1469 |
Python Completions | 676 |
JavaScript Completions | 709 |
Ruby Completions | 66 |
Haskell Completions | 53 |
C Completions | 27 |
Total Stars | 78 |
% of votes with a positive feedback rating | 95% of 310 |
Total "Very Satisfied" Votes | 285 |
Total "Somewhat Satisfied" Votes | 21 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 12 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |