Pergunta de entrevista da empresa Yandex

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

Resposta da entrevista

Sigiloso

3 de set. de 2022

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