Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Common Words by mozurin
"use strict";
function commonWords(first, second)
{
const secondSet = new Set(second.split(','));
return first.split(',').filter(e => secondSet.has(e)).sort().join(',');
}
June 25, 2018
Comments: