Question d’entretien chez Yandex

Live-coding screening: Create an optimal data structure that supports next operations: set, remove, get, getRandom

Réponse à la question d'entretien

Utilisateur anonyme

3 sept. 2022

I used LRU-like approach with hashmap and swapping on removal