Implement a cache that evicts its heaviest entries first
Company: Netflix
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Onsite
Overview: Implement a cache with a total-weight budget and heaviest-first eviction. Handle key updates, stale priorities, tie rules, incoming-entry policy, and the time and memory trade-offs of lazy versus indexed heaps.