Skip to content

lionel-nj/adventofcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Advent of Code Solutions

2022 - 8 ⭐

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 53.3%
  • Python 37.1%
  • C++ 3.6%
  • Kotlin 3.5%
  • Shell 2.2%
  • APL 0.3%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy