We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33fe81 commit 25c8ab6Copy full SHA for 25c8ab6
src/bin/23.rs
@@ -1,7 +1,5 @@
1
advent_of_code::solution!(23);
2
3
-use std::iter::once;
4
-
5
use advent_of_code::maneatingape::hash::*;
6
7
struct Computer {}
@@ -86,7 +84,7 @@ fn bors_kerbosch(
86
84
let pivot = p.union(&x).max_by_key(|v| g[v].len()).unwrap();
87
85
88
for v in p.difference(&g[pivot]).copied().collect::<Vec<_>>() {
89
- let next_r = r.iter().chain(once(&v)).copied().collect();
+ let next_r = r.iter().chain(std::iter::once(&v)).copied().collect();
90
let next_p = p.intersection(&g[&v]).copied().collect();
91
let next_x = x.intersection(&g[&v]).copied().collect();
92
0 commit comments