Giter Club home page Giter Club logo

aoc2022's Introduction

advent of code 2022

https://adventofcode.com/2022

about

for 2022, I'm planning to implement in python

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 ./day01/input.txt
71780
> 568 μs
+ python ./day01/part2.py ./day01/input.txt
212489
> 578 μs
+ python ./day02/part1.py ./day02/input.txt
15422
> 1590 μs
+ python ./day02/part2.py ./day02/input.txt
15442
> 2048 μs
+ python ./day03/part1.py ./day03/input.txt
8176
> 641 μs
+ python ./day03/part2.py ./day03/input.txt
2689
> 549 μs
+ python ./day04/part1.py ./day04/input.txt
444
> 851 μs
+ python ./day04/part2.py ./day04/input.txt
801
> 946 μs
+ python ./day05/part1.py ./day05/input.txt
GFTNRBZPF
> 892 μs
+ python ./day05/part2.py ./day05/input.txt
VRQWPDSGP
> 828 μs
+ python ./day06/part1.py ./day06/input.txt
1142
> 389 μs
+ python ./day06/part2.py ./day06/input.txt
2803
> 1683 μs
+ python ./day07/part1.py ./day07/input.txt
1206825
> 1204 μs
+ python ./day07/part2.py ./day07/input.txt
960831
> 1222 μs
+ python ./day08/part1.py ./day08/input.txt
1870
> 7242 μs
+ python ./day08/part2.py ./day08/input.txt
517440
> 23630 μs

aoc2022's People

Contributors

clasherkasten avatar asottile avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.