Giter Club home page Giter Club logo

advent-of-code-2021's Introduction

πŸŽ„advent-of-code-2021

Overview

Advent of Code 2022 will be starting soon. In preparation for it, I decided to go back and solve problems from the previous iteration. This repository contains the solutions for the 2021 iteration.

My language of choice for the year is Python. My goal is to write simple, readable, and idiomatic code as much as I can. I will also try to restrict myself to the standard library for the most part.

I have also tried to add some basic comments explaining the approach in each problem

Solutions

Each day's solution is in its own folder under src. Solutions for part A, B are independent and in their own files named a.py and b.py respectively. Input for the day_XX is in the XX.txt file under the inputs directory.

Running them is as simple as -

$ python src/day_XX/a.py
$ python src/day_XX/b.py
# or run them all
$ bash run-all.sh

Or, if you have just installed

$ just run XX

Note: You might require Python v3.10.8.

Stars obtained

39 / 50 ⭐

Other Advent of Code solutions

Year Repo Language
2021 advent-of-code-2021 (this repo) Python
2022 advent-of-code-2022 Rust

Acknowledgements

Thanks to Eric Wastl for creating and managing the Advent of Code project.

advent-of-code-2021's People

Contributors

v-shenoy 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.