CodeMentor.
Ask AIProblemsLearnC++TCSCore CSHRProgress
0Lv 1
ProblemsHashing

Isomorphic Strings

Easy
LeetCode
6/8
EasyHashingLeetCode #205

Isomorphic Strings

Bijection between characters of s and t. Two maps (or map + set).

Examples

Example 1

Input

egg add

Output

true
Example 2

Input

foo bar

Output

false

Stuck? Take a nudge

C++17Autosaves