Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
O(NlogN) solution in Creative category for [old] Common Words by blabaster
function commonWords(aa, bb) {
let a = "", res = [];
for (let b of (aa + "," + bb).split(",").sort()) {
if (a == b) res.push(a);
a = b;
}
return res.join(",");
}
Jan. 2, 2017
Comments: