Coding Challenge

Valid Anagram

Easy
stringhashmap

Check whether two strings are anagrams.

Return true if one string can be formed by rearranging the characters of the other string.

Examples

Input: s = "anagram", t = "nagaram"

Output: true

Constraints

  • Strings contain lowercase English letters for the standard version

Preparing your coding workspace...