Domanda di colloquio di LinkedIn

Design and implement a data structure that can insert, remove, and randomly select an item all in constant time.

Risposte di colloquio

Anonimo

29 gen 2017

Should think about HashSet/HashMap

Anonimo

13 gen 2018

Using the combination of ArrayList and HashMap.