# Crafting Interpreters, chapter 26

> Week 24 of the cracked.guide path: Ch 26: Garbage Collection; LeetCode: 2 NeetCode 150 problems.

Week 24 of 145 on cracked.guide, in Crafting Interpreters: Crafting Interpreters 26: Garbage Collection and 2 NeetCode 150 problems. The reading guides budget about 8 hours.

## Key facts {#key-facts}

- [Crafting Interpreters 26: Garbage Collection](https://cracked.guide/guide/ci-26): A mark-sweep garbage collector: roots, marking with a gray stack (tricolor abstraction), tracing references, sweeping unreachable objects, weak references for the string table, and when to trigger…
- Phase: Crafting Interpreters, weeks 1 to 28.
- Updated October 20, 2026.

## By the end of this week you can {#objectives}

- Explain reachability, roots and the tricolor abstraction.
- Implement mark-sweep collection: mark roots, trace references, sweep white objects.
- Use stress-GC mode to expose objects collected too early.

## This week's tasks {#tasks}

- [Crafting Interpreters chapter 26, Garbage Collection](https://cracked.guide/guide/ci-26): about 8 hours
- LeetCode: 2 NeetCode 150 problems

Previous: [Week 23](https://cracked.guide/curriculum/week/23) · Next: [Week 25](https://cracked.guide/curriculum/week/25)

---

Source: https://cracked.guide/curriculum/week/24
cracked.guide: A free, dated 145-week path to getting genuinely cracked at programming.
