#AOC 2024 Day 07, Solutions

1 messages · Page 1 of 1 (latest)

spare tinsel
#

Post your solutions for day 7.

winter otter
#

One thing that surprised me (not intentionally) is that '234:'.int() works, so I could split only by space

spare tinsel
#

yeah, it is good for handling messy data

#

it also supports 1_234

#

One of the shortest way, to get named integer parameters in a program is n := os.getenv('N').int(), without having to import stuff (other than os), or write a manual parser etc ... with good shells, you can then just N=1_000_000 v run program.v

sterile sundial
#

I used recursion with early exit if we're above the target