attribution for copied code
This commit is contained in:
parent
47f8a87e0d
commit
6787a05c3a
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ impl Solution for Day08 {
|
|||
}
|
||||
}
|
||||
|
||||
// Shamelessly copied from https://rustycloud.org/_code_samples/gcd.html
|
||||
fn gcd(mut n: u64, mut m: u64) -> u64 {
|
||||
// Make sure that either number isn't 0
|
||||
assert!(n != 0 && m != 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue