Skip to content

4e1e0603/aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Advent of Code is an annual set of Christmas-themed computer programming challenges that follow an Advent calendar. It has been running since 2015.

Website, Wikipedia

Solutions

2022
2023

My code is quite dense. I usually end up with a solution without explicit loops, I use comprehension where possible without intermediate variables. This is hard to debug, so I usually start with some loop and then refactor it on the way. The variable names are usually abbreviated as follows: t: table, s: solution (sometimes intermediate), s1, s2: solutions (parts 1 and 2), xs, ys: input data.

Python

py aoc{yy}{dd}.py

e.g.

py aoc2201.py

kdb+/q

C:\q\w64\q.exe
q)system "cd C:/path/to/advent-of-code"

q)\l aoc{yy}{dd}.q

e.g.

q)\l aoc2201.q

Template

Use PowerShell?

  • download data from https://adventofcode.com/{yyyy}/day/{d}/input
  • create a file with proper name, defaults, and comment aoc{yy}{dd}.{ex}

Releases

No releases published

Packages

No packages published