Avoid Repeated Computations By Caching A Sum, Then Print 'CACHED:' Plus Final Integer

#18 · 18 of 20
Paid plan required

Unlock the full library.

This exercise is part of the full library. The Practice Pass unlocks hints, explanations, instant answer reveal, and all 1,598 graded exercises — one payment, lifetime access. (The full course adds the capstone and GPT tutor.)

See all plans →Log in
All exercises in Python: Writing Efficient Code (Time Complexity, Vectorization)