6 kyu

Check if two words are isomorphic to each other

710 of 1,471rasmus_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

Stats:

CreatedOct 9, 2017
PublishedOct 9, 2017
Warriors Trained2804
Total Skips57
Total Code Submissions10294
Total Times Completed1471
Python Completions677
JavaScript Completions710
Ruby Completions66
Haskell Completions53
C Completions27
Total Stars78
% of votes with a positive feedback rating95% of 310
Total "Very Satisfied" Votes285
Total "Somewhat Satisfied" Votes21
Total "Not Satisfied" Votes4
Total Rank Assessments12
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • rasmus_ri Avatar
  • natan Avatar
  • JohanWiltink Avatar
  • Blind4Basics Avatar
  • Firefly2002 Avatar
  • trashy_incel Avatar
  • akar-0 Avatar
  • KayleighWasTaken Avatar
Ad