← LessonsBUILDER PATH · 7–9🌲

Firefly Halfway Hunt

LESSON 109
🎯 Today's missions
🌲✨🔍
ENCHANTED FOREST

Firefly Halfway Hunt

A moon-firefly is hiding in one numbered tree. Search every tree and dawn will arrive first—so use the forest's halfway secret!

🧠 Before we start

At the Spellbook, you followed dependency links instead of guessing task order. Today, binary search uses another smart rule: in sorted data, test the middle and throw away the half that cannot contain the answer.

🔢 Keep it sorted→🎯 Test the middle→✂️ Remove half→🔁 Repeat
Challenge 1 of 4Prepare sorted trees
1

Choose a searchable tree row

Binary search needs values in order. Tap the row that rises from smallest to largest.

WHICH FOREST ROW IS SORTED?

🌟 What you learned

Come back tomorrow for another advanced visual coding adventure! ✨
✨

The Moon-Firefly Is Missing!

Sixteen numbered trees glow before you. Search by halves and bring the moon-firefly home before dawn.