You are viewing a single comment's thread. Return to all comments →
My answer with Typescript, I am a bit surprised by this question, is it too simple?
function twoStrings(s1: string, s2: string): string { for (let c of s1) if (s2.includes(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 →
My answer with Typescript, I am a bit surprised by this question, is it too simple?