Domanda di colloquio di Yandex

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

Risposta di colloquio

Anonimo

3 set 2022

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