Why should different string lengths return false immediately?
Practice this question from Valid Anagram - Frequency map Pattern Practice Quiz, with options and an explanation.
Question
Why should different string lengths return false immediately?
Option A — Correct answer
Different lengths can never have equal frequencies
Option B
Different lengths always mean true
Option C
It avoids lowercase conversion
Option D
It improves sorting stability
Explanation
Different lengths cannot have identical character frequencies.