Valid Anagram (Go)
Source: LeetCode #242
Topics: strings, hash map
Problem
Return true if a and b are anagrams of each other — the same characters with the same counts.
Comparison is case-sensitive.
isAnagram("listen", "silent") // true
isAnagram("rat", "car") // false
Only solution.go is yours to edit; it's compiled against the trusted solution_test.go.
Run
go test -v ./challenges/is-anagram/go/
Sign in to submit your solution.