You are viewing a single comment's thread. Return to all comments →
simple cpp solutions
int designerPdfViewer(vector h, string word) {
int maxheight=0;
for(char c :word){ int a= c -'a'; maxheight=max(maxheight,h[a]); } int area=maxheight * word.length(); return area; }
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 →
simple cpp solutions
int designerPdfViewer(vector h, string word) {
for(char c :word){ int a= c -'a'; maxheight=max(maxheight,h[a]); } int area=maxheight * word.length(); return area; }