Isomorphic Strings
Easy
Strings
String
Hash Table
Given two strings, determine if characters in s can be mapped to characters in t (one-to-one).
Constraints
1 ≤ s.length ≤ 5×10^4
Examples
Example 1:
Input: egg
add
Output: true
Example 2:
Input: foo
bar
Output: false
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console