fixed formatting
This commit is contained in:
parent
d55f21183e
commit
a846d59e2a
4 changed files with 319 additions and 4 deletions
|
|
@ -11,7 +11,7 @@ fn solution(x: i32) -> i32 {
|
|||
let n: i32 = line.trim().parse().expect("invalid input");
|
||||
total += n;
|
||||
};
|
||||
};
|
||||
}
|
||||
return totals.iter().sum();
|
||||
}
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ fn add_to_total(totals: &mut Vec<i32>, total: i32) {
|
|||
*n = i;
|
||||
i = tmp;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
pub fn solutionA() -> i32 {
|
||||
|
|
@ -33,4 +33,3 @@ pub fn solutionA() -> i32 {
|
|||
pub fn solutionB() -> i32 {
|
||||
return solution(3);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,4 +7,3 @@ pub fn solutionA() -> i32 {
|
|||
pub fn solutionB() -> i32 {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue