Valid Anagram (Rust)
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.
is_anagram("listen", "silent") // true
is_anagram("rat", "car") // false
Grading
Your solution.rs is compiled together with a trusted tests.rs (which include!s it) using
rustc --test. Only solution.rs is yours to edit.
Sign in to submit your solution.