← LessonsBUILDER PATH Β· 7–9🎭

Stage Sliding Spotlight

LESSON 141
🎯 Today's missions
πŸŽ­πŸ”¦πŸŽ΅
STAGE & MUSIC

Stage Sliding Spotlight

The theater's big spotlight lights exactly three seats at a time. Slide it along the row to find the loudest group of fans, without wasting time counting everyone again.

🧠 Before we start

Oasis Dynamic Route remembered answers so it never repeated work. Today we reuse work again with a sliding window: a small frame over a list. When the frame moves one step, the program adds the seat that enters and removes the seat that leaves instead of recounting the whole frame.

πŸ”¦ Frame a groupβ†’βž• Add enteringβ†’βž– Remove leavingβ†’πŸ† Keep the best
Challenge 1 of 4Find the window
1

Frame the spotlight

Each seat shows how loud its fan cheers. Tap the window ideas in the order a program uses them: the lit group, its total, then the move.

SEATS 1–8 Β· THE SPOTLIGHT COVERS 3 SEATS
WINDOW SIZE3
WINDOW SUM13

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨