advent_of_code_2024::day_19

Function parse_patterns

source
fn parse_patterns(input: &str) -> PatternTreeNode
Expand description

Turn the list of patterns into a tree that matches them. expected format e.g. r, wr, b, g, bwu, rb, gb, br