Design a data structure supporting Insert, Remove, and GetRandom
Asked in the Tech screening (CS Fundamentals) stage. Described as "DSA Insert-Remove-GetRandom".
Implement randomized_set_operations(operations, seed). Each operation is a two-item list such as ["insert", 5], ["remove", 5], or ["getRandom", null]. Return an array containing each insert/remove result as a Boolean and each GetRandom result as an integer. The set starts empty, duplicate inserts and removals of missing values return false. For deterministic grading, initialize Python's random generator with seed before processing operations.
def randomized_set_operations(operations, seed):