Skip to main content

Practice · 1 of 3

Build Generator<int> from Scratch

CHALLENGE
Difficulty: advanced+25 XP

Implement the full Generator<T> from the lesson (promise, handle wrapper, RAII) and the counter(from, to) coroutine with co_yield. The graded checks resume it exactly and expect exact values.

Back to lesson: Practice: Hands on the Handle