While not a primary concern for me, I'm keeping track and I may come back and optimize code later.
Day | Part 1 | Part 2 | Notes |
---|---|---|---|
1 | 69.500 μs | 2.644 ms | Find digits |
2 | 31.750 μs | 17.708 μs | Parsing, finding min/max |
3 | 11.438 ms | 19.745 ms | Parsing, collision |
4 | 40.125 μs | 47.000 μs |
- Create a new day folder using template folder
dayXX
- Change directory to the new folder
- Use
includet("run.jl")
to watch changes during problem solving
- Convert run.jl file to a module (uncomment first & last lines)
- Use
init
,run
, andbmk
functions to re-run and benchmark logic
# Run a single day
julia --project=. -e 'include("main.jl"); run(init("03"))'
# Benchmark a single day
julia --project=. -e 'include("main.jl"); bmk(init("03"))'