/advent-of-code

Solutions for Advent of Code challenge

Primary LanguageScala

Welcome!

This is the home for my solutions for Advent of Code challenge using Scala

Approach

I'm using a functional approach for each solution. Which means:

  1. avoiding null
  2. pure functions
  3. immutable values
  4. recursion\tail-recursion
  5. functional data structures
  6. functional control flow (no for-loops, no while-loops)
  7. whenever I use if there is always else

Tools

I'm using IntelliJ IDEA running scala worksheets

** Note: in order for a worksheet to execute, you need to enable build before run

Repository structure

scala/
+--build.sbt                 The main sbt build definition
+--project/                  The rest of the sbt build
+--src/main/                 
   +---/resources
       +---advent2015        Input files for 2015 challenge 
       +---advent2020        Input files for 2020 challenge
       +---advent2021        Input files for 2021 challenge
       +---advent2022        Input files for 2022 challenge
       +---advent2023        Input files for 2023 challenge
   +---/advent2015           Source code for 2015 challenge
   +---/advent2020           Source code for 2020 challenge    
   +---/advent2021           Source code for 2021 challenge    
   +---/advent2022           Source code for 2022 challenge    
   +---/advent2023           Source code for 2023 challenge