Learn C++ STL

Lesson 1 of 5 · Three Projects and the Interview Pack

Module 18 · Three Projects and the Interview Pack

Project One: A Cache That Remembers Recent Visits

ProReading

Alice keeps recently opened library records in memory. Reading a record again should keep it nearby. When space runs out, the record ignored longest must leave. Bob suggests removing the smallest key. Zara asks whether key order says anything about recent visits.

Checking what this lesson needs for you…

What is inside Project One: A Cache That Remembers Recent Visits

  1. The input
  2. The definitions
  3. The output
  4. Write first: the plan
  5. Requirements
  6. Sample input
  7. Sample output
  8. On your own machine
  9. Marking rubric
  10. Submission checklist