Design a data structure supporting insert, remove and getRandom in O(1)
Asked in the Coding stage.
Implement randomized_set(operations, seed). Each operation is ['insert', value], ['remove', value], or ['getRandom']. Return one result per operation: insertion and removal return booleans, while getRandom returns a uniformly selected stored value. The supplied seed makes random results deterministic for grading. getRandom is called only when the set is non-empty.
def randomized_set(operations, seed):