White fang

This commit is contained in:
Daniel Flanagan 2022-12-05 23:30:33 -06:00
parent a117350190
commit c53f8823dc
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -26,8 +26,9 @@ fn part1(c: &Input) -> Result {
} }
fn part2(c: &Input) -> Result { fn part2(c: &Input) -> Result {
let mut s: HashSet<char> = HashSet::with_capacity(14);
for i in 13..c.len() { for i in 13..c.len() {
let mut s: HashSet<char> = HashSet::new(); s.clear();
for j in i - 13..=i { for j in i - 13..=i {
s.insert(c[j]); s.insert(c[j]);
} }