Git Product home page Git Product logo

aoc-java's Introduction

Advent of Code solutions in Java

Connect your AoC account

Copy .env.dist file into .env file and fill in the value of session cookie after you have authenticated in AoC.

Current ongoing event execution

./gradlew run --args="--day=1"

Custom event - current or previous

./gradlew run --args="--year=2015 --day=1"

Running tests

./gradlew run --args="--day=1 --test"

Stupid mistakes/assumptions I did while solving puzzles

Year 2023

  • Day 15: Missed one crucial sentence in the puzzle description, but fix was trivial.
  • Day 14: Repeating cycles do not necessary start from 0
  • Day 13: Assume that only 2 lines or 2 columns are not enough for the pattern to be mirrored
  • Day 12: Silent int overflow
  • Day 11: Off by one error (1 + 1000000 does not equal 1000000 multiplication of the universe)
  • Day 10: Did not replace the start position with the correct pipe type
  • Day 9: Did not fully account for the negative numbers
  • Day 8: Looked at which index we reach the end instead of how many steps we need to reach the end
  • Day 7: Constructing too many nested if/else for a much simpler logic, missed lots of edge cases
  • Day 6:
  • Day 5:
  • Day 4:
  • Day 3:
  • Day 2:
  • Day 1:

This repo does follow the automation guidelines on the /r/adventofcode community wiki https://www.reddit.com/r/adventofcode/wiki/faqs/automation. Specifically:

  • Once inputs are downloaded, they are cached locally
  • If you suspect your input is corrupted, you can manually request a fresh copy by deleting the input file in src/main/resources/inputs and re-running the program.
  • The User-Agent header in com.vuryss.aoc.InputResolver is set to me since I maintain this repo :)

aoc-java's People

Contributors

vuryss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.