Given two strings s and t, return true if t is an anagram of s, and false otherwise.
An anagram is a word formed by rearranging the letters of another word, using all the original letters exactly once.
s = "anagram", t = "nagaram"trues = "rat", t = "car"falses = "a", t = "a"true1 <= s.length, t.length <= 5 * 10^4s and t consist of lowercase English lettersExpected time complexity: O(n)Run your code to see results
Use Cmd+Enter to run