AdventOfCode/2020/day21
Adam Millerchip 4955687b53 Gave up on zig 2020, restore just the elixir version 2022-11-27 15:58:41 +09:00
..
README Gave up on zig 2020, restore just the elixir version 2022-11-27 15:58:41 +09:00
day21part1.exs Gave up on zig 2020, restore just the elixir version 2022-11-27 15:58:41 +09:00
day21part2.exs Gave up on zig 2020, restore just the elixir version 2022-11-27 15:58:41 +09:00
input Gave up on zig 2020, restore just the elixir version 2022-11-27 15:58:41 +09:00

README

Day 21 Notes

+--------+
| Part 1 |
+--------+

$ elixir day21part1.exs
1829

+--------+
| Part 2 |
+--------+

$ elixir day21part2.exs
sp contains peanuts
gkcqxs contains fish
krjn contains shellfish
bpbdlmg contains soy
mxkh contains dairy
bvh contains nuts
rgc contains sesame
tdbcfb contains wheat
mxkh,gkcqxs,bvh,sp,rgc,krjn,bpbdlmg,tdbcfb


+------------------+
| Overall Thoughts |
+------------------+

Not much to say about this problem. I didn't really enjoy it much.
I mostly just fiddled about with the data until it reduced down to the
required information.

The process of elimination - identifying the allergen with just 1 ingredient
and using that to decude the other options, was very similar identifying the tickets
in Day 16.