Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] The Most Wanted Letter by mozurin
"use strict";
function mostWanted(data)
{
const freqs = [...data.toLowerCase().replace(/[^a-z]/g, '')].reduce(
(s, c) => (s[c] = (s[c] || 0) + 1, s),
{}
);
return Object.keys(freqs).sort(
(a, b) => (
freqs[a] != freqs[b]? freqs[b] - freqs[a] :
a.charCodeAt() - b.charCodeAt()
)
)[0];
}
June 24, 2018
Comments: