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

@@ -92,7 +92,7 @@ pub fn get_implementation(day: usize, part2: bool) -> Solution {
#[cfg(test)]
fn test_implementation(solution: Solution, data: &[u8], answer: impl ToString) {
let result = solution(&mut &data[..]);
let result = solution(&mut &*data);
assert_eq!(answer.to_string(), result);
}