Design a data structure with O(1) insert, delete, and random
Filed under Flipkart
The question
Design a data structure supporting insert, delete, and return random element in O(1) time.
No write-up yet. Related questions below have one.
Related Flipkart questions
Collected from public candidate posts and coding forums. Updated Nov 2026.