Commit Graph

4 Commits

Author SHA1 Message Date
Juan José Gutiérrez de Quevedo Pérez 2c8a012400 add a C version of the 2 problem
I wanted to check how much faster a C version would be. As it turns out
it is *MUCH* faster, the python version takes ca. 12s, the C version
takes a few milliseconds.
2020-12-15 11:41:46 +01:00
Juan José Gutiérrez de Quevedo Pérez dd2497438d optimized versions of day 15
interesting discoveries:
  * using a list instead of a dict made a difference, but not a lot
  * declaring the code in a function instead of as "global code" made *A
    LOT* of difference. I guess it has to do with the variables being
    global in that case
2020-12-15 11:40:03 +01:00
Juan José Gutiérrez de Quevedo Pérez 041b87cd05 a bit simplified solution 2020-12-15 10:21:30 +01:00
Juan José Gutiérrez de Quevedo Pérez d96d701f34 add day 15 2020-12-15 10:04:21 +01:00