Advent-of-Code-2023/day12/notes.org

333 B

Notes

i guess let's generate all possible? and short circuit when they are not matching mask

how do i generate all possible?

i take length of the mask, that's max size then for each step, either put . or put n # from the input.

add to current string, and do 2 recursive calls, one with diminished 'queue', one with same