leetcode414】的更多相关文章

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). Example 1: Input: [3, 2, 1] Output: 1 Explanation: The third maximum is 1. Examp…
public class Solution { public int ThirdMax(int[] nums) { ; var list = nums.Distinct().OrderByDescending(x => x).ToList(); ) { third = ; } && list.Count <= ) { third = list[]; } else { third = list[]; } return third; } } https://leetcode.com…
虽说周末要早起来着,但是日子过得有点奇怪,一不小心就忘掉了... leetcode414 https://leetcode.com/problems/third-maximum-number/?tab=Description leetcode485 https://leetcode.com/problems/max-consecutive-ones/?tab=Description leetcode495 https://leetcode.com/problems/teemo-attacking…