Weight-Based Cache
Netflix interview questions · Hard · Coding round · 6 tests
Implement an LFU cache variant where capacity is measured in total entry weight, not count.
The full question, tests and reference solution are available with a plan that includes Netflix.
Run your code with Ctrl+Enter to see results.