1
0

day 6 part 2 1.5 times faster

This commit is contained in:
2024-12-15 22:39:32 +01:00
parent d938e3a57c
commit d2986b0134
3 changed files with 14 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ fn part2(input: &str) -> i64 {
let width = 101;
let height = 103;
let mut robots = parse(input);
let max_seconds = width * height as i64;
let max_seconds = width * height;
for second in 0.. {
if second > max_seconds {
panic!("Seen all combinations but no christmas tree. So sad!");