mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 00:20:25 -04:00
Update README.md
This commit is contained in:
parent
4b58e7b308
commit
8e2ee50f0e
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class HashSet:
|
|||
* space complexity is `O(K+M)`, where `K` is the number of predefined buckets, and `M` is the number of unique values that have been inserted in the HashSet.
|
||||
|
||||
* lastly, to optimize search, we could maintain the buckets as sorted lists (and obtain `O(log(N))` time complexity for the lookup operation).
|
||||
* however, `insert` and `delete` are linear time (as elements would need to be shifted).
|
||||
* however, `insert` and `delete` are linear time (as elements would need to be shifted).
|
||||
|
||||
<br>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue