Compare commits
1 commit
cd519c3bd1
...
70184751e6
Author | SHA1 | Date | |
---|---|---|---|
Tristan Daniël Maat | 70184751e6 |
|
@ -52,7 +52,7 @@ fn count_possible_chains(jolts: &Vec<u64>) -> Result<u64, std::num::TryFromIntEr
|
||||||
window_lengths
|
window_lengths
|
||||||
.iter()
|
.iter()
|
||||||
.map(|length| Ok(permutations((*length).try_into()?)))
|
.map(|length| Ok(permutations((*length).try_into()?)))
|
||||||
.product::<Result<u64, _>>()
|
.product()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn chain_all(jolts: &Vec<u64>) -> (usize, usize, usize) {
|
fn chain_all(jolts: &Vec<u64>) -> (usize, usize, usize) {
|
||||||
|
|
Loading…
Reference in a new issue