Insert Delete GetRandom O(1)

Design a data structure that supports insert, remove, and getRandom in average O(1) time. insert and remove return true if the operation changes the set, otherwise false. getRandom returns a uniformly random element from the current set.

Examples
Input: [["Solution","insert","remove"],[[],[7],[7]]]
Output: [null,true,true]
Hints

Insert Delete GetRandom O(1)

Design a data structure that supports insert, remove, and getRandom in average O(1) time. insert and remove return true if the operation changes the set, otherwise false. getRandom returns a uniformly random element from the current set.