Loading lesson…
Level 1 · Apprentice0 XP
Walk through a collection without knowing how it is stored.
Step 1 / 5
ProblemA playlist stores songs in an array. Callers loop with indexes. When the playlist changes to a linked structure with shuffling, every caller breaks.
← → step
Before this: Chain of Responsibility
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write an Iterable that walks a paged API lazily with iterator { yieldAll(...) }, then use it with take(250) and check that only 3 pages are requested.