EasyString· 70% acceptance
#520

Valid Anagram 25

Easy

Return `true` if `t` is an anagram of `s`. Variant **#25**.

Example 1

Input: s = "abcdex", t = "xedcba"

Output: true

Constraints

  • 1 <= s.length <= 5 * 10^4
  • s and t consist of lowercase English letters

Acceptance: 70% · Topics: string, hash-table, sorting

isAnagram

← All practice problems