Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
dict enumerate solution in Clear category for Surjection Strings by m.kurapov
def isometric_strings(str1: str, str2: str) -> bool:
m={}
for i,c in enumerate(str1):
if c in m:
if str2[i]!=m[c]:
return False
else:
m[c]=str2[i]
return True
Nov. 18, 2020
Comments: