Code Monkey home page Code Monkey logo

aoc-2019's Introduction

AoC-2019

Here are my messy solutions to the 2019 Advent of Code.
I'm new to coding and I'm trying to use these problems to get better in python...

Day 1

Day 2

Day 3

Day 4

Day 5

Day 6

Day 7

Day 8

Day 9

Day 10

Day 11

Day 12

Day 13

Day 14

Really struggled with this day. Ended up re-writing the solution ~5 times.
In the end I just wasn't being rigorous enough with my tracking of leftover materials

Day 15

This one was fun for me. I spent some extra time trying to plot everything and have it animate as the robot moved through the maze.
I first started with a random robot who just chose a random direction every step. This worked as I eventually mapped the whole maze but it took 750,000 steps!
Next I decided to use the age old technique of following a wall. This was way more efficient and the whole maze was mapped in around 3000 steps. Once I knew I could map the maze I implemented a counting algorithm to count the number of steps the robot currently was from the start. Finally using these counts I traced the robots path backwards from the O2 system following the decreasing step count.

Day 16

Today was pretty straight forward as long as you started small and made sure you had everything accounted for. Solution easily scaled up.

Day 17

Another use of the intcode computer!
This time we ran a program to produce a series of overlapping lines where we had to determine the locations of each of the intersections. Just using some plotting and some simple checks was enough to solve part 1.

Day 18

Day 19

Day 20

Day 21

Day 22

Day 23

Day 24

Day 25

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.