From 6af57a839d59db84ded9e95315d4a9aeff8a9d64 Mon Sep 17 00:00:00 2001 From: Namratha2604 Date: Thu, 26 Sep 2024 14:25:05 +0530 Subject: [PATCH 1/2] #986-corrected the comment --- Bloom Filter/BloomFilter.playground/Contents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bloom Filter/BloomFilter.playground/Contents.swift b/Bloom Filter/BloomFilter.playground/Contents.swift index 7a3719d57..8ed808a06 100644 --- a/Bloom Filter/BloomFilter.playground/Contents.swift +++ b/Bloom Filter/BloomFilter.playground/Contents.swift @@ -79,4 +79,4 @@ bloom.insert("Bloom Filterz") print(bloom.array) bloom.query("Bloom Filterz") // true -bloom.query("Hello WORLD") // true +bloom.query("Hello WORLD") // false or true: It may return true due to a false positive, but it's not guaranteed. From 5e8c02913c04d86d3b41ebf47210b9f974ad7d26 Mon Sep 17 00:00:00 2001 From: Nitesh J Date: Mon, 7 Oct 2024 14:05:17 +0530 Subject: [PATCH 2/2] issue resolved #997 and #998 Correction of the README.markdown and Selection Sampling code improvement #998 --- Selection Sampling/README.markdown | 2 +- Selection Sampling/SelectionSampling.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Selection Sampling/README.markdown b/Selection Sampling/README.markdown index 741f592f4..5c2ff5e25 100644 --- a/Selection Sampling/README.markdown +++ b/Selection Sampling/README.markdown @@ -12,7 +12,7 @@ func select(from a: [T], count k: Int) -> [T] { for i in 0..(from a: [T], count k: Int) -> [T] { for i in 0..