|Find if two strings are anagrams of each other....|General Coding Problems

fn are_anagrams(a: &str, b: &str) -> bool

Medium

Find if two strings are anagrams of each other.

fn are_anagrams(a: &str, b: &str) -> bool

Asked in

tcs

Examples

Example 1:
Input: listen, silent
Output: true
Example 2:
Input: hello, world
Output: false
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases