entibo / advent-of-code-golf-2019

A modest attempt at "code golfing" the problems of https://adventofcode.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitpod Ready-to-Code

advent-of-code-golf-2019

  • A program can read the input from variable IN and should write the output in OUT (initially 0)
  • Early exit can be achieved by accessing the variable EXIT
  • ./run 3 will run ./js/3.js against the input currently in ./input.txt

Example: Day 1, Part Two

IN.split('\n').map(m => { while(m = m / 3 - 2 ^ 0, m > 0) OUT += m })

About

A modest attempt at "code golfing" the problems of https://adventofcode.com/


Languages

Language:JavaScript 95.4%Language:C 3.2%Language:Dockerfile 0.9%Language:Shell 0.4%