Hottest Day
temps[i] is the temperature on day i. Return the index of the hottest day. If several days share the highest temperature, return the earliest one.
Example 1
temps [18,25,31,25]
returns 2
The highest reading is 31, on day 2.
Constraints
1 <= len(temps) <= 100
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More NumPy problems
- Lower Triangle TotalBeginner
- Median ScoreBeginner
- Multiples Up ToBeginner
- Overlap CountBeginner
- Pass or FailBeginner
- Percent of TotalBeginner
- Pick ItemsBeginner
- Price With TaxBeginner