Your question is Anagram Checking. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Shelter Insurance systems may compare customer-entered text, such as names or reference phrases, without treating capitalization or punctuation as meaningful. Given two strings, determine whether they are anagrams after normalization.
Two strings are normalized by converting letters to lowercase and ignoring every character that is not a letter or digit. Return True if the normalized strings contain exactly the same characters with the same frequencies, otherwise return False.
Implement are_anagrams(s, t):
s and t containing printable ASCII characters.True when the normalized versions are anagrams, and False otherwise.def are_anagrams(s, t):