From 00cc60e23aec5e97aa9b417733c0f47c196ac0bf Mon Sep 17 00:00:00 2001 From: Isidro Arias Date: Sat, 8 Apr 2023 17:03:08 +0200 Subject: [PATCH] from goodfather to godfather --- data_structures/hashing/bloom_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/hashing/bloom_filter.py b/data_structures/hashing/bloom_filter.py index a92c5d86b..0ba1557e6 100644 --- a/data_structures/hashing/bloom_filter.py +++ b/data_structures/hashing/bloom_filter.py @@ -29,9 +29,9 @@ because both hash functions return the same value '01100100' Not added elements should return False ... ->>> not_present_films = ("The Goodfather", "Interstellar", "Parasite", "Pulp Fiction") +>>> not_present_films = ("The Godfather", "Interstellar", "Parasite", "Pulp Fiction") >>> {film: bloom.format_hash(film) for film in not_present_films} -{'The Goodfather': '00011000', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'} +{'The Godfather': '00000101', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'} >>> any(film in bloom for film in not_present_films) False