You are viewing a single comment's thread. Return to all comments →
Using c#
public static string twoStrings(string s1, string s2) { HashSet<char> hashS1 = new HashSet<char>(s1); foreach(char c in s2) { if (hashS1.Contains(c)) { return "YES"; } } return "NO"; }
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 →
Using c#