LeetCode: Isomorphic Strings
Problem:
https://leetcode.com/problems/isomorphic-strings/description/
Code:
class Solution:
def map_check(self, txt1: str,txt2: str, char_map: dict)->bool:
for i in range(len(txt1)):
if txt1[i] not in char_map:
...
is-power-of-two.hashnode.dev2 min read