31 lines
478 B
Python
31 lines
478 B
Python
|
|
class CustomSet(object):
|
||
|
|
def __init__(self, elements=[]):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def isempty(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def __contains__(self, element):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def issubset(self, other):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def isdisjoint(self, other):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def __eq__(self, other):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def add(self, element):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def intersection(self, other):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def difference(self, other):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def union(self, other):
|
||
|
|
pass
|