You are viewing a single comment's thread. Return to all comments →
Java solution:
public static int designerPdfViewer(List<Integer> h, String word) { int asciiOffset = 97; int max = h.get(word.charAt(0) - asciiOffset); for(int i = 1; i < word.length(); i++) { if(max < h.get(word.charAt(i) - asciiOffset)) { max = h.get(word.charAt(i) - asciiOffset); } } return word.length() * max; }
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: