Yandex interview question

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

Interview Answer

Anonymous

Sep 3, 2022

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