blob: 7fd2a2d33837f1ff366d7ab16c095990ec05e24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
struct Solution;
impl Solution {
pub fn array_strings_are_equal(word1: Vec<String>, word2: Vec<String>) -> bool {
let ans: bool;
if word1.join("") == word2.join("") {
ans = true;
} else {
ans = false;
}
return ans;
}
}
fn main() {
let word1 = vec!["ab".to_string(), "c".to_string()];
let word2 = vec!["a".to_string(), "bc".to_string()];
print!("{}", Solution::array_strings_are_equal(word1, word2));
}
|