sudarshang / aoc2021

https://adventofcode.com/2021

Repository from Github https://github.comsudarshang/aoc2021Repository from Github https://github.comsudarshang/aoc2021

pre-commit.ci status

advent of code 2021

https://adventofcode.com/2021

stream / youtube

about

for 2021, I'm planning to implement in python and then some meme language... maybe.

timing

  • comparing to these numbers isn't necessarily useful
  • normalize your timing to day 1 part 1 and compare
  • alternate implementations are listed in parens
  • these timings are very non-scientific (sample size 1)
$ find -maxdepth 1 -type d -name 'day*' -not -name day00 | sort | xargs --replace bash -xc 'python {}/part1.py {}/input.txt; python {}/part2.py {}/input.txt'
+ python day01/part1.py input.txt
1195
> 1208 μs
+ python day01/part2.py input.txt
1235
> 1196 μs
+ python day02/part1.py input.txt
1947824
> 675 μs
+ python day02/part2.py input.txt
1813062561
> 736 μs
+ python day03/part1.py input.txt
3277364
> 2797 μs
+ python day03/part2.py input.txt
5736383
> 7091 μs (haxy dicts)
5736383
> 2184 μs
+ python day04/part1.py input.txt
60368
> 17870 μs
+ python day04/part2.py input.txt
17435
> 44811 μs

About

https://adventofcode.com/2021


Languages

Language:Python 99.9%Language:Shell 0.1%