Algorithm · Robinhood · Medium
Requirements Solve two coding problems based on common security-engineering situations. Evaluation emphasizes sound design, defensive behavior, and awareness of security risks rather than raw execution speed. 1. Bounded resource cache Design an LRU-style cache for security-sensitive resources. The cache must hold no more than a fixed capacity. When inserting a new item while the cache is full, remove the least recently used item. Provide an interface with the following…
Checking your access…