Advent of Code 2022

December 6, 2023 ยท View on GitHub

All my Advent of Code 2022 attempts! Mainly in Python.

Cool Stuff

Day 24
Day 22 Part 1Day 22 Part 2

Note to Self

export X=... # day number

# Note that .in files are hidden but it should be within Day-<X>/<X>.in

# Python
cd Day-$X/Python && python3 main.py < ../$X.in && cd ../..

# JavaScript
cd Day-$X/JavaScript && node main.js < ../$X.in && cd ../..

# Java
cd Day-$X/Java && javac Main.java && java Main < ../$X.in && cd ../..

# C++
cd Day-$X/C++ && g++ -o mainc main.cpp && ./mainc < ../$X.in && cd ../..

# Haskell
cd Day-$X/Haskell && runhaskell main.hs && cd ../..

# Rust
cd Day-$X/Rust && rustc main.rs && ./main < ../$X.in && cd ../..