fn main() { println!("Hello, world!"); } struct Solution; impl Solution { pub fn array_strings_are_equal(word1: Vec, word2: Vec) -> bool { //word1.iter_mut().reduce(|a, b| {a.push_str(b); a}).unwrap() == word2.iter_mut().reduce(|a, b| {a.push_str(b); a}).unwrap() //word1.concat() == word2.concat() word1.iter().flat_map(|x| x.chars()).eq(word2.iter().flat_map(|x| x.chars())) } }