← problems
#242

Valid Anagram

EasyArrays & Hashing

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, using all the original letters exactly once.

Example

s = "anagram", t = "nagaram"  => true
s = "rat", t = "car"          => false
Implement
function IsAnagram(s: string, t: string) -> bool

Found a bug? Or annoyed about something in the language? Tell us.

loading editor…