You are viewing a single comment's thread. Return to all comments →
const map = new Map(); let result = "NO"; for (let i = 0; i < s1.length; i++) { map.set(s1[i], true); } for (let j = 0; j < s2.length; j++) { if (map.has(s2[j])) { result = "YES"; break } } return result;
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 →