Skip to content

chriskj/advent-of-code-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2020

Sharing my solutions for Advent of Code 2020, this one describes the method/libraries I've used.

22nd Dec

  • More recursion, however this time I manged to do it correctly.
  • I had missed one minor deatil about how many cards that went into the recursive rounds.......

21st Dec

  • Looping through structures and eliminating one by one...

20th Dec

  • Puzzles and Jigsaws are fun - however it's easy to make this one overcomplicated - numpy is probably not the best way to solve it either.
  • Started with calculating all kinds of stuff, before I realised I could just make a version of every single tile (flipped/rotated) and make sure that top is in connected to bottom etc.
  • And only one tile matched pr place....

19th Dec

  • Recursive functions again - this one caused lots of frustration!

18th Dec

  • Calculator! Checking texts...

17th Dec

  • Using numpy array was smart when we extended the number of dimensions...

16th Dec

  • Simple fields, loops and validations

15th Dec

  • List and dict

14th Dec

  • Binaries are okay, but memory-terms (address, bits, masks etc) are confusing!

13th Dec

  • Found a simple solution, after trying heaps of slow loops

12th Dec

  • Simple structures, however manual approach

11th Dec

  • Back to numpy arrays again to manipulate structure

10th Dec

  • Tricky one - tried generating all solutions, but was too slow.
  • Tried again with recursive functions, also too slow
  • Added caching and it was quick

9th Dec

  • Simple lists/enumerate

8th Dec

  • Functions!

7th Dec

  • Recursive functions

6th Dec

  • Sets, lists and loops

5th Dec

  • Simple lists/dicts/loops

4th Dec

  • More Regex

3st Dec

  • Used numpy arrays for the first time

2st Dec

  • Regex it is

1st Dec

  • Looping through lists

About

Python solutions for advent of code 2020

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages