aoc-2020-zig

Advent of Code 2020 Solutions in Zig
git clone https://git.sinitax.com/sinitax/aoc-2020-zig
Log | Files | Refs | README | sfeed.txt

part2 (688B)


      1--- Part Two ---
      2
      3Now that you've isolated the inert ingredients, you should have enough information to figure out
      4which ingredient contains which allergen.
      5
      6In the above example:
      7
      8
      9 - mxmxvkd contains dairy.
     10 - sqjhc contains fish.
     11 - fvjkl contains soy.
     12
     13
     14Arrange the ingredients alphabetically by their allergen and separate them by commas to
     15produce your canonical dangerous ingredient list. (There should not be any
     16spaces in your canonical dangerous ingredient list.) In the above example, this would be
     17mxmxvkd,sqjhc,fvjkl.
     18
     19Time to stock your raft with supplies. What is your canonical dangerous ingredient
     20list?
     21
     22