Giter VIP home page Giter VIP logo

advent-of-code-2023's Introduction

๐ŸŽ„ Advent Of Code ๐ŸŽ

2021

2022

2023

Introduction

This repository contains my solutions for the Advent of Code challenges. I made an exclusive repository for the past one because I tried to make a challenge (Each day a new language). This year I will just try to not overcomplicate things and just have fun, while completing the previous years.

How the repository is organized

On the root directory you will find two shell scripts:

  • new_day.sh: This script will create a new subdirectory for the day and year you want to add. Like this it will automatically create the input.txt file and the main.py using the template.py file where you can find the template I use for each day.
  • run_all.sh: This script will run all the days from a year you will specify in the CLI. It will run the main.py file in each subdirectory and print the result.

Feel free to consult the template.py file to see how I structure my code, and to use the shell scripts if you want !

Python

I feel like Python is the best and easier language for me to solve these challenges. Simply ! (Also after the 2022 editions I just want to stick to one language >:) )

Run time

Year Day Part 1 Part 2
2023 1 0.614ms 3.503ms
2023 2 0.911ms 0.755ms
2023 3 3.208ms 2.934ms
2023 4 0.779ms 0.904ms
2023 5 0.372ms 1.716ms
2023 6 0.142ms 0.033ms
2023 7 6.287ms 5.168ms
2023 8 3.533ms 15.069ms
2023 9 7.202ms 6.684ms
2023 10 1758.343ms 1769.731ms

Note: The run time is calculated using the full input file, the one provided in the repository is a cut down version of the original one in order to respect the AdventOfCode copy right about the input files.

Credits

All rights are reserved by the creators of the Advent of Code puzzles. The input files are heavily cut down versions of the original ones.

advent-of-code-2023's People

Contributors

eric-philippe 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.