75. Are They Anagrams?
Core1000 ms256 MBSolved by 0%
Read two lines of text and print Yes if they are anagrams of each other,
the same characters in a different order, or No otherwise.
Ignore case and spaces. Compare only letters. So Listen and Silent are anagrams.
Constraints - Each line has between 1 and 100000 characters. - Printable ASCII only.
Input
Two lines, each containing one string.
Output
Print exactly one word: Yes or No.
Inputlisten
silent
OutputYes
Noteis a classic anagram pair
InputListen
SILENT
OutputYes
Notediffers in case, which must be ignored
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.