User:Cscott/Advent Of Code 2023/Day 12

Part 1:

  • Example: 21
  • Full input: 7716

Part 2:

  • Example: 525152
  • Full input: 18716325559999

Source: Module:User:Cscott/Advent Of Code 2023/Day 12

(I'm using a lua script I wrote for lua-turtle to bundle up my modules for scribunto, so scroll all the way to the end to find the "real" code.)

Input: