mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 10:35:02 +01:00
test day 1
This commit is contained in:
parent
7be7e7c549
commit
13ac9a70ce
9 changed files with 107 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
pub fn part2(input: &str) {
|
||||
pub fn part2(input: &str) -> u64 {
|
||||
let sum = input
|
||||
.lines()
|
||||
.map(|line| {
|
||||
|
|
@ -39,5 +39,5 @@ pub fn part2(input: &str) {
|
|||
})
|
||||
.sum::<u64>();
|
||||
|
||||
println!("part2: {sum}");
|
||||
}
|
||||
sum
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue