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