Skip to content

本页便签全部 ↗

本页还没有便签

划选正文里的一段文字,点弹出的「✎ 存为便签」,回头在这里一键跳回原处。

Week 1 · A Recursion Triple ​

This round is all about recursion!

The three problems really share one theme — the illustrious recursion.

Even though engineering practice treats recursion with caution, it genuinely is an important way of thinking about problems. The three problems this week come from CS61A.

The first two train the instinct for "breaking a big problem into subproblems" — counting coins splits by denomination, digit distance splits by digit.

For the third, we pack recursion into C++23's std::generator and feel the one-two punch of "recursion + coroutines".

题目加载中…
题目加载中…
题目加载中…

Where the problems come from: All three problems this week are drawn from UC Berkeley's CS61A homework and lab exercises (Count Coins / Digit Distance / Hailstone). They were proposed and hand-picked by the great owollz4, and we gave them a light C++-flavored adaptation — the same problem, tackled the Python-course way and the Modern C++ way, reads delightfully different when you compare the two side by side.

v0.13.0-17-gf6158c6 · f6158c6 · 2026-11-20