diff --git a/Others/determine if two string are close.cpp b/Others/determine if two string are close.cpp new file mode 100644 index 00000000..2e02aa1b --- /dev/null +++ b/Others/determine if two string are close.cpp @@ -0,0 +1,30 @@ +class Solution { +public: + bool closeStrings(string word1, string word2) { + if (word1.length()!=word2.length()) return false; + mapm1; + mapm2; + mapm3; + mapm4; + + for (int i=0;i