Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
str.translate() solution in Clear category for Surjection Strings by ann3leo
def isometric_strings(str1: str, str2: str) -> bool:
translation_table = str1.maketrans(str1, str2)
translated_str = str1.translate(translation_table)
return translated_str == str2
May 31, 2021
Comments: