You are viewing a single comment's thread. Return to all comments →
Python solution
def twoStrings(s1, s2): s1_set = set(s1) s2_set = set(s2) return 'YES' if len(s1_set.intersection(s2_set)) !=0 else '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 →
Python solution