leetcode 414[easy]---Third Maximum Number

難度: easy Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n). 思路:找出list中第三大的數,用set(
相關文章
相關標籤/搜索