(s: String, t: String)
| 1 | pub fn is_anagram(s: String, t: String) -> bool { |
| 2 | let mut a = s.chars().collect::<Vec<char>>(); |
| 3 | let mut b = t.chars().collect::<Vec<char>>(); |
| 4 | a.sort(); |
| 5 | b.sort(); |
| 6 | a == b |
| 7 | } |
| 8 | |
| 9 | fn main() { |
| 10 | let s = "rat".to_string(); |
nothing calls this directly
no outgoing calls
no test coverage detected