We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Designer PDF Viewer
Designer PDF Viewer
Sort by
recency
|
2645 Discussions
|
Please Login in order to post a comment
Go Golang Solution O(n)
"JSeptic Service: Experts in sewage management. From inspections to maintenance, we ensure clean, efficient systems. Trust us for your septic needs. Reliable. Professional. Effective."
"JSeptic Service: Experts in sewage management. From inspections to maintenance, we ensure clean, efficient systems. Trust us for your septic needs. Reliable. Professional. Effective."
Python Solution
My JS solution
function designerPdfViewer(h, word) { const alphabet = 'abcdefghijklmnopqrstuvwxyz'; let maxValue = 0; for(const char of word) { if (maxValue < h[alphabet.indexOf(char)]) maxValue = h[alphabet.indexOf(char)]; } return maxValue * word.length; }