Practice
Learn
← Quit
0 / 0 correct
Data Structures
Medium
1 of 140
Which data structure gives O(1) insert, delete and get-random-element?
A
A heap
B
A dynamic array plus a hash map from value to its index (swap-with-last on delete)
C
A balanced BST
D
A linked list