LeetCode – Isomorphic Strings (Java)
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. For example,”egg” and “add” are isomorphic, “foo” and “bar” are not. Java Solution 1 We can define a map which tracks the char-char mappings. If a value is already … Read more