aoc-2021-rust

Advent of Code 2021 Solutions in Rust
git clone https://git.sinitax.com/sinitax/aoc-2021-rust
Log | Files | Refs | README | sfeed.txt

part2 (674B)


      1--- Part Two ---
      2
      3The resulting polymer isn't nearly strong enough to reinforce the submarine. You'll need to run more
      4steps of the pair insertion process; a total of 40 steps should do it.
      5
      6In the above example, the most common element is B (occurring 2192039569602 times) and the least
      7common element is H (occurring 3849876073 times); subtracting these produces
      82188189693529.
      9
     10Apply 40 steps of pair insertion to the polymer template and find the most and least common elements
     11in the result. What do you get if you take the quantity of the most common element and subtract the
     12quantity of the least common element?
     13
     14