simonfl3tcher / advent

Advent of Code solutions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code

Solutions for https://adventofcode.com.

Template

require_relative "../toolkit"

def solution(input)
  result = input.lines.map do |line|
    # ...
  end

  block_given? ? yield(result) : result
end

example = <<-EX
EX

part 1
with(:solution)
try example, 0
try puzzle_input

# part 2
# with(:solution)
# try example, 0
# try puzzle_input

About

Advent of Code solutions


Languages

Language:Ruby 98.6%Language:Go 1.4%