EasyString· 74% acceptance
#541

Valid Anagram 46

Easy

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

Example 1

Input: s = "abcdef", t = "abcdef"

Output: true

Constraints

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

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

isAnagram

← All practice problems