Approach Explanation /(^ω^)/
- I counted how many times each letter appears in both strings using len function.
- If the counts match exactly, the strings are anagrams.
- Otherwise, return False.
Method Used: (〜 ̄▽ ̄)〜
- Length check
- Character frequency counting
- Comparison of counts
- Efficient solution

Top comments (0)