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