Given two strings s and t, return true if t is an anagram of s, and false otherwise.
s
t
true
false
s = "anagram", t = "nagaram"
s = "rat", t = "car"
0 <= s.length, t.length <= 5 * 10^4 s and t consist of lowercase English letters.
Topics
Implement isAnagram in the editor and return the answer — printing it is never graded.
isAnagram
Problem 6 of 1146 in the arena