Back to DSA sheet

Valid Anagram

EasyStrings
Open on LeetCodeAmazonGoogle

Return true if one string is an anagram of the other, meaning they contain the same characters with the same frequencies.

Constraints
  • 1 <= s.length, t.length <= 5 * 10^4
  • s and t consist of lowercase English letters
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
valid-anagram.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.