Pergunta de entrevista da empresa Innovaccer

Implement a FIFO/LRU caching module to cache the output of a function in python. I was asked to implement it using two classes and having the base class re implement a python dict.

Resposta da entrevista

Sigiloso

19 de ago. de 2021

Didn't really have to implement it as a decorator or anything like that. I believe the interviewer was just looking to see if I new about FIFO/LRU and inheritance. So the discussion and implementation went in that direction.