You are viewing a single comment's thread. Return to all comments →
def twoStrings(s1, s2): return ('YES' if set(s1).intersection(set(s2)) else 'NO')
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Two Strings
You are viewing a single comment's thread. Return to all comments →