Skip to content

zachtjones/AdventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdventOfCode

My solutions to the 25 day coding challenges on AdventOfCode

I started this challenge for the 2022 challenge, and will contribute subsequent years.

My personal goal was to be able to solve the challenges with minimal help needed from the internet.

Structure

In this repository I have the solutions to each day, files are named. Day, and are in a package by the year (see src/main/kotlin/com.zachjones.year<2022>)

I have also included the inputs for each day under a folder src/main/resources/, named input-.txt and input-.txt.

These programs are designed to work for both part 1 and part 2 of each day's challenge, as well as with the example smaller problems they give.

If you're new to the challenge, you may notice that the input's for the day are unique to each person, so everyone will have slightly different answers.

Setup on your machine

You should be able to import this as a standard gradle library into your IDE of choice (Intellij, etc.)

Usage

To invoke a single day's challenges, just run the main method in that class. It will print out the solutions.

To run all days, you can run the tests using gradle.

gradle test -i

Note that some days can take up to a minute, since some of these are very large input sets and computationally complicated, so these are run in parallel to speed up execution.

Contributing

Please don't contribute code to this repo, however feel free to read/copy this code to help your understanding of my solutions and my thought process to how I handle these coding challenges.

About

My solutions to the 25 day coding challenges on AdventOfCode, https://adventofcode.com/.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages