mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-07-23 15:00:51 -04:00
Update hash_set_bst.py
This commit is contained in:
parent
e65d65d6eb
commit
178b3aea34
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue