What does Valid Anagram require?
Practice this question from Valid Anagram - Frequency map Pattern Practice Quiz, with options and an explanation.
Question
What does Valid Anagram require?
Option A
Same length only
Option B — Correct answer
Same characters with the same frequencies
Option C
Same first and last character
Option D
Same sorted index positions before sorting
Explanation
Anagrams must have the same characters with the same frequencies.