← Microsoft questions

Design a custom data structure with O(1) operations

Filed under Microsoft

The question

Design a data structure supporting insertFirst(val), insertLast(val), deleteValue(val) (deletes first occurrence), and isExist(val) in O(1) time complexity.

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

Related Microsoft questions

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