#AOC 2024 Day 07, Solutions
1 messages · Page 1 of 1 (latest)
One thing that surprised me (not intentionally) is that '234:'.int() works, so I could split only by space
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
interesting solution
I used recursion with early exit if we're above the target