Why is pairwise anagram comparison not ideal?
Practice this question from Group Anagrams - Hash key Pattern Practice Quiz, with options and an explanation.
Question
Why is pairwise anagram comparison not ideal?
Option A — Correct answer
It repeats many anagram checks
Option B
It cannot store strings
Option C
It always fails on empty input
Option D
It uses O(1) time
Explanation
It repeats many anagram checks across words and groups.