aboutsummaryrefslogtreecommitdiff
path: root/check_two_str_arr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'check_two_str_arr.rs')
-rw-r--r--check_two_str_arr.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/check_two_str_arr.rs b/check_two_str_arr.rs
deleted file mode 100644
index 7fd2a2d..0000000
--- a/check_two_str_arr.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-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));
-}