Compare commits

..

1 commit

Author SHA1 Message Date
Tristan Daniël Maat cd519c3bd1
Complete day 10 2020-12-10 23:41:34 +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() .product::<Result<u64, _>>()
} }
fn chain_all(jolts: &Vec<u64>) -> (usize, usize, usize) { fn chain_all(jolts: &Vec<u64>) -> (usize, usize, usize) {