Pergunta de entrevista da empresa NVIDIA

Show a data structure for LRU cache.

Respostas da entrevista

Sigiloso

14 de fev. de 2011

How about using a decrementing counter per cycle per block? In every cycle, increment the counter (to its saturation) if the same is being looked for. Else, decrement it. Evict the block if counter =0.

1

Sigiloso

18 de mai. de 2010

Told them that I am not sure of my answre.