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
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.