HashMap & Set

Isomorphic Strings

easy
Two strings `s` and `t` are isomorphic if the characters in `s` can be replaced to get `t`. All occurrences of a character must be replaced with another character while preserving order. No two characters may map to the same character, but a character may map to itself. Example: `isIsomorphic("egg", "add")` → `true`; `isIsomorphic("foo", "bar")` → `false`.
Hint steps(0/3 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.

  2. 2

    Complete previous step or reveal to unlock this hint.

  3. 3

    Complete previous step or reveal to unlock this hint.