aldsalkjf

This commit is contained in:
Jacob Signorovitch
2025-03-02 13:35:11 -05:00
parent 5081ab49a5
commit 98fb817c80
2 changed files with 38 additions and 9 deletions

View File

@@ -2,6 +2,33 @@ package bloom_filters;
import tester.Tester;
class Examples {
void testTheThing(Tester t) { t.checkExpect(true, true); }
class BitVec {
boolean[] vec;
BitVec(int m) {
if (m < 0)
throw new IllegalArgumentException("Must be positive integer.");
this.vec = new boolean[m];
}
// Get the value of the ith bit.
boolean get(int i) { return this.vec[i]; }
// Set the value of the ith bit.
void set(int i, boolean v) { this.vec[i] = v; }
// Flip the ith bit.
void flip(int i) { this.vec[i] = !this.vec[i]; }
}
class Hash {
static
}
class Examples {
void testTheThing(Tester t) {
t.checkExpect(true, true);
t.checkExpect(false, false);
}
}