GithubHelp home page GithubHelp logo

chinery / advent-of-code Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 540 KB

Place to store work for the yearly Advent of Code programming puzzles – code just for fun!

Python 52.46% C++ 37.86% Swift 9.68%

advent-of-code's Introduction

Advent of code

This is a place to store my solutions for the yearly Advent of Code programming puzzles. At least, as far as I get each year before work commitments mean I can't keep up! One year I'll do the full thing (update: 2020 was the first, all 25 complete!)

I am by no means competitive on the global leaderboard because I do not want to wake up at 5am. The code is just for fun and not perfect, but if you want to see a bit of how my brain works, go ahead!

For 2018 and 2019 my input for each puzzle is stored in a text file with the same name as the question, which I read in by redirecting stdin. Written in Python 3.

For 2020 I am using C++. Inputs are stored in the data subfolder. There is a .vscode folder set up with the build task using clang.

For 2021 I am using Swift. Inputs are stored in each day's subfolder and read in using an ugly absolute path rather than having to add each file to the Xcode build each day. You'd need to update that to get it to run.

Enjoy!

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.