You are viewing a single comment's thread. Return to all comments →
"WTF. I created a monster =) "What have I created?!""
int designerPdfViewer(vector h, string word) { int len = word.size(); vector gg;
char maxac = 'a'; for (int i = 0; i < len; i++) { if (maxac < word[i]) { maxac = word[i]; } } string pp = "abcdefghijklmnopqrstuvwxyz"; int chet = 0; char bb = 'a'; int hp; for (int i = 0; i < h.size(); i++) { if (bb == maxac) { gg.push_back(h[i]); sort(gg.begin(), gg.end()); hp = len * gg[gg.size() - 1]; break; } else { bb++; gg.push_back(h[i]); } } return hp;
}
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Designer PDF Viewer
You are viewing a single comment's thread. Return to all comments →
"WTF. I created a monster =) "What have I created?!""
int designerPdfViewer(vector h, string word) { int len = word.size(); vector gg;
}