MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / __init__

Method __init__

Design/InsertDeleteGetRandomO(1).py:72–78  ·  view source on GitHub ↗

Initialize your data structure here.

(self)

Source from the content-addressed store, hash-verified

70class RandomizedSet(object):
71
72 def __init__(self):
73 """
74 Initialize your data structure here.
75 """
76 self.data_dict = {}
77 self.data_list = []
78 self.length = 0
79
80 def insert(self, val):
81 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected