Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Two-liner solution in Creative category for Surjection Strings by obone
def isometric_strings(str1: str, str2: str) -> bool:
dict1, dict2 = dict(zip(str1, str2)), dict(zip(str2, str1))
return dict1 == dict(map(reversed, dict2.items())) and dict2 == dict(map(reversed, dict1.items()))
Sept. 8, 2019
Comments: