Google | Phone Screen | LRU Cache

I had a phone interview with Google (ON/CA) in September of 2021. I got a question similar to Leetcode #146 LRU Cache (https://leetcode.com/problems/lru-cache/).

The difference is that we needed to create a function to receive the job description (e.g. {start: 0, duration: 2, cpu: 4}) and the max usage of the cpu (maxCPU). Then return true if it's possible to process the jobs with the capacity of the maxCPU.

Hope it's helpfull for someone.

Comments (0)