Slug: capstone-02 · Paired reading: Chapters 27 and 29
Prompt
Combine ledger-style checked transfer in a HashMap with a binary-search
helper: fn checked_transfer(balances, from, to, amount) and
fn first_true(xs, pred) via partition_point.
The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).
Don’t have the book yet? The landing page stays open — purchase unlocks this gym.
advanced · order 180
Slug: capstone-02 · Paired reading: Chapters 27 and 29
Combine ledger-style checked transfer in a HashMap with a binary-search
helper: fn checked_transfer(balances, from, to, amount) and
fn first_true(xs, pred) via partition_point.