← MakeMyTrip questions

Design question bank with O(1) operations

Filed under MakeMyTrip

The question

Design a data structure for storing questions (ID and text) supporting insertion, deletion, search, and equal-probability random question retrieval in O(1) time.

No write-up yet. Related questions below have one.

Related MakeMyTrip questions

Collected from public candidate posts and coding forums. Updated Nov 2026.