Count the Maximum
Return how many times the largest value of nums appears in nums. For example, in [3, 9, 9, 1] the largest value 9 appears twice.
Example 1
nums [3,9,9,1]
returns 2
The largest value is 9, and it shows up twice.
Constraints
1 <= len(nums) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Cumulative MaxBeginner
- Day to Day ChangeBeginner
- Diagonal From ValuesBeginner
- Evenly SpacedBeginner
- Every Other SumBeginner
- Hottest DayBeginner
- Lower Triangle TotalBeginner
- Median ScoreBeginner