Two strings s and t of the same length are isomorphic when you can turn s into t by replacing its characters through a fixed rule:
s is replaced by the same character;s are never replaced by the same character;The order of the characters stays as it is. Return true if s and t are isomorphic, and false otherwise.
Replace every n with d and every o with e.
The first a would have to become z and the last a would have to become w, but every copy of a character must be replaced the same way.
Both x and y would have to become p, and two different characters may not share a replacement.
Any character can take part, not only letters: 3 becomes a, + becomes -, = becomes ! and 6 becomes b.
Constraints
1 <= s.length <= 5 * 10⁴t.length == s.lengths and t consist of printable ASCII characters: codes 32 (space) to 126 (~).Walk both strings together, position by position. A character of s must always line up with the same character of t, and the rule must hold the other way too: two different characters of s can't line up with one character of t.
true