Marks :100
: 0 | : 0
You are given two strings S and T of the same length. You need to determine if its possible to transform string S into T with the following rule any number of times.
You can map a character from string S to a character of string T and replace all the occurrences of that character in string S.
The first line of input contains two strings S and T($$$1 \le S, T \le 10^5$$$)
For every test case return YES Or NO in a new line indicating its possible to transform S into T
abc bbb
YES
abcde aa
NO
All occurrences of a character must be replaced with another character while preserving the order of the character.
No two characters may map to the same character, but a character may map to itself
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.