Skip to content

Commit e9ec62a

Browse files
authored
Update isomorphic-strings.cpp
1 parent 8ac233b commit e9ec62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/isomorphic-strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Solution {
1212
if (s2t[s[i]] == 0 && t2s[t[i]] == 0) {
1313
s2t[s[i]] = t[i];
1414
t2s[t[i]] = s[i];
15-
} else if (s2t[s[i]] == 0 || s2t[s[i]] != t[i]) {
15+
} else if (s2t[s[i]] != t[i]) {
1616
// Contradict mapping.
1717
return false;
1818
}

0 commit comments

Comments
 (0)