Replace hashset with bitset

This commit is contained in:
2022-01-02 22:35:18 +01:00
parent 255edaca79
commit 4d7188e1ff
4 changed files with 83 additions and 31 deletions

View File

@@ -182,7 +182,7 @@ mod tests {
fn sample_part1() {
let answers = [16, 12, 23, 31];
for (&sample, answer) in SAMPLE.into_iter().zip(answers) {
for (&sample, answer) in SAMPLE.iter().zip(answers) {
test_implementation(part1, sample, answer);
}
}