You are viewing a single comment's thread. Return to all comments →
Java Solution
public static int designerPdfViewer(List<Integer> h, String word) { int maxHeight = 0; for (char ch : word.toCharArray()) { int index = ch - 'a'; int height = h.get(index); if (height > maxHeight) { maxHeight = height; } } return maxHeight * 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 →
Java Solution