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.
publicstaticintdesignerPdfViewer(List<Integer>h,Stringword){// Write your code hereintsize=word.length();intlargest=0;intans=0;for(inti=0;i<size;i++){charch[]=word.toCharArray();intres=(int)ch[i]-97;if(h.get(res)>largest){largest=h.get(res);}ans=size*largest;}returnans;}
Cookie support is required to access HackerRank
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 →