import string
def designerPdfViewer(h, word):
# Write your code here
alphabet_list = list(string.ascii_lowercase)
max_idx = -1
for i in word:
if max_idx < h[alphabet_list.index(i)]:
max_idx = h[alphabet_list.index(i)]
return max_idx * len(word)
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
[HankerRank-python] Angry Professor (0) | 2022.07.24 |
---|---|
[HackerRank-python] Utopian tree (0) | 2022.07.20 |
[HackerRank-python] The Hurdle Race (0) | 2022.07.14 |
[HackerRank-python] Climbing the Leaderboard (0) | 2022.07.11 |
[HackerRank-python] Picking Numbers (0) | 2022.07.11 |