|Check whether two strings are anagrams of each oth...|General Coding Problems

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

Medium

Check whether two strings are anagrams of each other.

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

Asked in

infosys

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