25 / 26
read the snippet · pick its Big-O
function sharedTags(a, b) {const setA = new Set(a);const out = [];for (const tag of b) {if (setA.has(tag)) out.push(tag);}return out;}
function sharedTags(a, b) {const setA = new Set(a);const out = [];for (const tag of b) {if (setA.has(tag)) out.push(tag);}return out;}