Pergunta de entrevista da empresa bp

Screening - Implement an LRU evicted cache with priorities and time. Expired cache entries should be evicted first. Then we should evice based on priority where an entry is chosen based on LRU policy Trapping of rain water leetcode medium problem and as an improvement I was asked to do the same in 2-d array One leetcode medium problem where it was required to sort the array and then perform some operation on it. Two rounds of system design.