Problem Description

Check if two strings have same characters but different order.
Real Life: "listen" and "silent" are anagrams.

Step-by-Step Logic:
1. Count frequency of each character in both strings
2. If all frequencies match, they are anagrams
3. Or sort both strings and compare
4. Return result

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next