Git Product home page Git Product logo

advent-of-code-2020's Introduction

Implementations for Advent of Code 2020

These are intended to be quick solutions. So generally there aren't tests or any of the other things one would add for a production system. I'm storing here just for my own recollection.

Some notes on how to run these:

  1. Done at command line: Instructions

  2. Instructions

     pbpaste | awk -f 02.01.awk | grep -v INVALID | wc -l
    
     pbpaste | awk -f 02.02.awk | grep -v INVALID | wc -l
    
  3. Instructions

     python3 03.py 1 1 | awk '/#/' | wc -l
    
     python3 03.py 1 3 | awk '/#/' | wc -l
    
     python3 03.py 1 5 | awk '/#/' | wc -l
    
     python3 03.py 1 7 | awk '/#/' | wc -l
    
     python3 03.py 2 1 | awk '/#/' | wc -l
    
  4. Instructions

     pbpaste | awk -f 04.01.awk | grep -v INVALID | wc -l
    
     pbpaste | awk -f 04.02.awk | grep -v INVALID | wc -l
    
  5. Instructions]

     python3 05.01.py | sort -n | tail -n 1
     python3 05.02.py
    
  6. Instructions

    pbpaste | awk -f 06.01.awk | awk '{sum += (0 + $0)} END {print sum}'
    pbpaste | awk -f 06.02.awk | awk '{sum += (0+$0)} END {print sum}'
    
  7. Instructions

    python3 07.01.py | wc -l python3 07.02.py | wc -l

  8. Instructions - requires awk to be gawk

    pbpaste | awk -f 08.01.awk pbpaste | awk -f 08.02.awk | grep Success

  9. Instructions

    python3 09.01.py python3 09.02.py

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.