fnmain(){println!("{} the same amount",ifhas_same_amount("$XxkkLLOoox-","x","o"){"Has"}else{"Not has"})}fnhas_same_amount(str:&str,ch1:&str,ch2:&str)->bool{letstr=str.to_lowercase();str.matches(ch1).count()==str.matches(ch2).count()}
Has the same amount
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A simple solution with Rust.