GithubHelp home page GithubHelp logo

sizableshrimp / adventofcode2021 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 251 KB

My solutions for the Advent of Code 2021 challenges

Home Page: https://adventofcode.com/2021

License: MIT License

Java 100.00%
advent-of-code adventofcode adventofcode2021 advent-of-code-2021 spoilers advent-of-code-java

adventofcode2021's Introduction

AdventOfCode2021

This repository holds my solutions and helper code for Advent Of Code 2021. These are by no means the "best" or "fastest" solutions out there. These are just my attempt at the challenge.

Running A Specific Day

This program runs a specific day based on a few factors inside the Main class. If it is the month of December in EST time and the 25th or earlier, whatever current day it is in EST time will be selected to run. If this program is not run during Advent season, it will run ALL days by default. An output from a day looks like the following:

Day 1:
Part 1: 123
Part 2: 456
Completed in 5.298ms

Note that "Completed in X.XXXms" is not a real or accurate benchmark, but my own approximate measure of how long a day takes to run. For real benchmarks, please see gradle jmh and the benchmarks package. If you would like to run a specific day outside the month of the December, use run(int) in the Main class.

Information About Data Manager

This program can optionally read input data for a specified day using the Advent Of Code servers. To enable this feature, you must include a session.txt file in the working directory. This file should hold your session cookie from the Advent Of Code website, which can be found with browser inspection. This cookie expires after a month which means the session.txt file needs to be updated from time to time.

Retrieving Input File

If the input file is successfully retrieved from the servers, this data is cached in a text file relative to your run directory in the aoc_input directory. Fetching data from the Advent Of Code servers is only used if a file with the input data for a specified day cannot be found to reduce load on the servers. See the documentation on DataManager#read for more detail.

adventofcode2021's People

Contributors

sizableshrimp avatar

Watchers

 avatar  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.