mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update hash_set_bst.py
This commit is contained in:
parent
e65d65d6eb
commit
178b3aea34
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
class HashSet:
|
class HashSet:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, size):
|
||||||
self.size = 131
|
self.size = size
|
||||||
self.bucket = [Bucket() for _ in range(self.size)]
|
self.bucket = [Bucket() for _ in range(self.size)]
|
||||||
|
|
||||||
def _get_hash_key(self, key):
|
def _get_hash_key(self, key):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user