| 39 | |
| 40 | """ |
| 41 | class Solution(object): |
| 42 | def thirdMax(self, nums): |
| 43 | """ |
| 44 | :type nums: List[int] |
| 45 | :rtype: int |
| 46 | """ |
| 47 | nums = set(nums) |
| 48 | if len(nums) < 3: |
| 49 | return max(nums) |
| 50 | |
| 51 | return sorted(nums, reverse=True)[2] |
nothing calls this directly
no outgoing calls
no test coverage detected