Skip to content
Snippets Groups Projects
Commit d7818e1d authored by Simon Lecocq's avatar Simon Lecocq
Browse files

Answered 1st part of questions. I stop here else my head will explode :'(

parent 452994dd
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,13 @@ class SimpleBloomFilter:
True
>>> bf.contains("TGCA")
False
>>> bf2 = SimpleBloomFilter(size = 10, num_hashes=2)
>>> bf2.add("TGCA")
>>> bf = bf.merge(bf2)
>>> bf.contains("AGCT")
True
>>> bf.contains("TGCA")
True
"""
def __init__(self, size: int =100, num_hashes: int =1):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment