Compare commits

..

1 commit

Author SHA1 Message Date
Tristan Daniël Maat 70184751e6
Complete day 10 2020-12-10 23:48:59 +00:00

View file

@ -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) {