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