You are viewing a single comment's thread. Return to all comments →
TypeScript one-liner:
function designerPdfViewer(h: number[], word: string): number { return Array.from(new Set(word.split(""))).reduce((acc, curr) => Math.max(h[curr.charCodeAt(0) - 97], acc), 0) * word.length; }
Seems like cookies are disabled on this browser, please enable them to open this website
Designer PDF Viewer
You are viewing a single comment's thread. Return to all comments →
TypeScript one-liner: