Checkpoint: slide the window
Challenge on lesson: Checkpoint: spec โ plan โ code
CHALLENGE
Difficulty: advanced+25 XP
A sensor stream is a string of digits. A reading is 'stable' if some **3-character window** has all digits equal. Implement hasStable(String s): true if such a window exists, false otherwise โ including when the string is **shorter than 3** (no full window can exist).
Press Submit to check your solution.
Back to lesson: Checkpoint: spec โ plan โ code