Skip to content

Bomberlt/adventofcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Advent of Code Solutions

2022 - 4 ⭐

2021 - 50 ⭐


The graphic above has been created with AoCTiles/create_aoc_tiles.py script. Feel free to use it in your own repositories. See the AoCTiles/README.md for instructions on how to use it.


All solutions expect the input via stdin and print to stdout. Each solution always prints part 1 and 2 at the same time on separate lines. In order to test the programs you can pipi the input to the program: julia 1.jl < input.in, which is then compared to input.ans. Instead of doing this manually, I use my program-tester.sh script (see here), which runs the given program on all *.in files in the directory, and tests whether the corresponding *.ans file matches the given output. I have mapped that program on Enter in vim, which makes testing programs easy. To validate a program manually, type diff <(julia 1.jl < input.in) input.ans.

Programs are initialized with the init-day.sh script. I.e. typing init-day.sh 10 initializes the 10th day by creating a folder named 10, downloading the input test case with the session.cookie, copying the dummy.py file and opening the solution file.

  • 2021: There is a solution for each problem in Julia. Sometimes there is a Python or APL solution as well. I'm trying out Julia for the first time, mostly focusing on short and elegant code.

About

My Advent of Code solutions and visualizations for the years 2021 and 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 55.4%
  • Python 36.4%
  • C++ 3.7%
  • Shell 2.3%
  • Kotlin 1.8%
  • APL 0.4%