changed set initialization
This commit is contained in:
parent
9011ba9493
commit
233d7fe359
@ -1,7 +1,7 @@
|
||||
import random as r
|
||||
|
||||
def __init__(self):
|
||||
self.set = {}
|
||||
randomSet = ()
|
||||
|
||||
def insert(self, val):
|
||||
"""
|
||||
@ -10,7 +10,6 @@ def insert(self, val):
|
||||
"""
|
||||
if val is None:
|
||||
return None
|
||||
|
||||
if val not in self:
|
||||
self.add(val)
|
||||
return True
|
||||
|
||||
Loading…
Reference in New Issue
Block a user