diff options
author | L0P0P <grassoemanuele@live.com> | 2024-06-27 12:02:35 +0200 |
---|---|---|
committer | L0P0P <grassoemanuele@live.com> | 2024-06-27 12:02:35 +0200 |
commit | 3c4229fc9e0ec6da9a7f60b57b9e93c49d1b6b6c (patch) | |
tree | aca198eca62a0260a50ea59003c44a942e98f521 /progs/a284.py | |
parent | fb89b8c0885ee4e289cfb577bbabf0ee66b05024 (diff) |
Fixed a lot of problems from all the progs we need to parse
Diffstat (limited to 'progs/a284.py')
-rw-r--r-- | progs/a284.py | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/progs/a284.py b/progs/a284.py index b69395b..cfd429d 100644 --- a/progs/a284.py +++ b/progs/a284.py @@ -1,11 +1,13 @@ -def is_Isomorphic(str1,str2):
- dict_str1 = {}
- dict_str2 = {}
- for i, value in enumerate(str1):
- dict_str1[value] = dict_str1.get(value,[]) + [i]
- for j, value in enumerate(str2):
- dict_str2[value] = dict_str2.get(value,[]) + [j]
- if sorted(dict_str1.values()) == sorted(dict_str2.values()):
- return True
- else:
- return False
\ No newline at end of file +# FIXME: multiple variable assignment in for loop
+#
+# def is_Isomorphic(str1,str2):
+# dict_str1 = {}
+# dict_str2 = {}
+# for i, value in enumerate(str1):
+# dict_str1[value] = dict_str1.get(value,[]) + [i]
+# for j, value in enumerate(str2):
+# dict_str2[value] = dict_str2.get(value,[]) + [j]
+# if sorted(dict_str1.values()) == sorted(dict_str2.values()):
+# return True
+# else:
+# return False
\ No newline at end of file |