Temperature Filter
L1 Easy Arrays & Hashing
A threshold test is the same counting pattern you have already used: decide which elements qualify and tally them.
You recorded the temperature each day in temps. Return how many readings are strictly greater than threshold.
Examples
▸ temps = [30, 25, 40, 22], threshold = 27
→ 2
▸ temps = [], threshold = 10
→ 0
▸ temps = [15], threshold = 10
→ 1