def findLucky(self, arr: List[int]) -> int: ans = -1 for key, value in Counter(arr).items(): if key==value: ans = max(ans, key) return ans 我什麼時候能find我的lucky呢 什麼時候要讓我中樂透 唉 -- ※ 發信站: 批踢踢實業坊(www.ptt-club.com.tw), 來自: 220.132.58.28 (臺灣) ※ 文章網址: https://www.ptt-club.com.tw/Marginalman/M.1751722967.A.91D
Firstshadow: 嗚嗚哇哇哇 07/05 21:50
pareru: http://i.imgur.com/4TeeKfc.jpg 07/05 21:50