Compare commits
1 Commits
bb74658f9c
...
6ac65a7408
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ac65a7408 |
@ -180,7 +180,7 @@ fn build_lookup(input: &str) -> Result<HashMap<String, &str>> {
|
||||
// 2, 3 and 5 have 5 segments:
|
||||
// 3 has overlap w/ 1
|
||||
// 5 is a subset of 9
|
||||
// 2 is the left overs.
|
||||
// 2 isn't a subset of 6.
|
||||
set.iter().filter(|s| s.len() == 5).for_each(|d| {
|
||||
let s: HashSet<_> = d.chars().collect();
|
||||
let one_int: HashSet<_> = s.intersection(&one).cloned().collect();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user