Zelphir Kaltstahl 73c0b2a0cd add solution for day 07 puzzle 02 3 years ago
..
display-utils.scm 482550af7c add puzzle-01 parsing 3 years ago
fileio.scm 5534d071ff add input for day 7 3 years ago
func-utils.scm 68f2069bdb add func-utils and logic-utils 3 years ago
grammar.scm a2d773002f move grammar out of main module to avoid recompilation 3 years ago
input 5534d071ff add input for day 7 3 years ago
logic-utils.scm 68f2069bdb add func-utils and logic-utils 3 years ago
peg-tree-utils.scm 1f749dc655 add taylan's version of the procedure 3 years ago
puzzle-01.scm e453aa1be4 cleanup code 3 years ago
puzzle-02.scm 73c0b2a0cd add solution for day 07 puzzle 02 3 years ago
readme.org dd9b82523f add instructions to readme 3 years ago
set.scm b9e1ed1bf2 modify set-add! to take arbitrary number of args 3 years ago
test-set.scm c7466f4718 add set implementation 3 years ago

readme.org

check all bag types only have one rule

cat input | cut --delimiter ' ' --fields 1-2 | wc -l cat input | cut --delimiter ' ' --fields 1-2 | uniq | wc -l

count leaves in rule set

cat input | grep 'no other bags' | wc -l