mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 18:45: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 unsafe fn part2(input: &str) {
|
||||
pub unsafe fn part2(input: &str) -> u64 {
|
||||
let mut sum = 0;
|
||||
|
||||
let bytes = input.as_bytes();
|
||||
|
|
@ -152,5 +152,5 @@ pub unsafe fn part2(input: &str) {
|
|||
line_idx += 1;
|
||||
}
|
||||
|
||||
println!("part2: {sum}");
|
||||
sum
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue