Skip to main content

Practice · 2 of 3

FRQ (b): longest warm streak

CHALLENGE
Difficulty: advanced+25 XP

Part (b): implement longestWarmStreak(double[] readings) returning the length of the **longest consecutive run** of readings strictly above 15.0. Example: {20.1, 16.0, 3.0, 18.0, 19.5, 20.0} → 3 (the final three).

Back to lesson: Practice: FRQ workshop: the weather station