Bloomberg Interview Question

Implementing the LRU algo

Interview Answers

Anonymous

Mar 18, 2010

I used hash table with LRU for each bucket, writing code on the spot was really difficult

Anonymous

Mar 8, 2015

Simple (to write code for) solution would be to use queue - first in first out.