Isomorphic Strings
easy
1. You are given two strings s1 and s2. 2. You have to determine if they are isomorphic or not. 3. Two strings are called isomorphic if - -> Every character of s1 can be mapped with characters of s2. -> A character of s1 can be mapped to only one character. -> All occurrences of a character must be replaced with another character while preserving the order of characters. Note -> Length of s1 is equal to the length of s2.
Constraints
1 <= length of strings <= 1000
Format
Input
Two strings s1 and s2
Output
true/false
Example
Sample Input
pepcoding
sosherlok
Sample Output
false
Question Video