Your question is Coding: Anagrams Using HashMap. 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.
TBO tek receives booking-related text from different interfaces, where capitalization, spaces, and punctuation may vary. Write a function that determines whether two strings are anagrams after normalizing them.
Two strings are anagrams if they contain the same alphanumeric characters with the same frequencies, regardless of order. Treat uppercase and lowercase letters as equal, and ignore all non-alphanumeric characters.
Implement are_anagrams(first, second).
first and second.True if the normalized strings are anagrams; otherwise, return False.isalnum() is false.def are_anagrams(first, second):