You are viewing a single comment's thread. Return to all comments →
C++ report error! This one is working for c++
string twoStrings(string s1, string s2) { string flag = "NO"; for (char c: "abcdefghijklmnopqrstuvwxyz") { if(s1.find(c)!=string::npos && s2.find(c)!=string::npos){ flag = "YES"; break; } } return flag; }
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
C++ report error! This one is working for c++