Completed day 10. Not wildly happy with my runtime

This commit is contained in:
Connor Johnstone
2023-12-11 00:39:11 -07:00
parent b60591ea38
commit 8b270c236b
13 changed files with 1392 additions and 7 deletions

View File

@@ -16,13 +16,13 @@ mod tests {
1 3 6 10 15 21
10 13 16 21 30 45";
assert_eq!(part1(test_input), "114".to_string());
panic!();
}
#[test]
fn test_part2() {
let test_input = "";
assert_eq!(part2(test_input), "".to_string());
assert_eq!(part2("0 3 6 9 12 15"), "-3".to_string());
assert_eq!(part2("1 3 6 10 15 21"), "0".to_string());
assert_eq!(part2("10 13 16 21 30 45"), "5".to_string());
}
}