Question d’entretien chez Amazon

Construct a LRU cache class with get and put methods.

Réponse à la question d'entretien

Utilisateur anonyme

16 févr. 2022

I used a HashMap as my data structure. I also used the containsKey function when deciding whether or not to update a slot.