advent-of-code

module
v0.0.0-...-e79363e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: MIT

README

Advent of Code 2022

Prerequisites

  • Go 1.19.X installed
  • go binary on the classpath

Structure

Each directory stores task and its solution

repository root
|- README.md
|- 01
| |- input.txt
| |- main.go
| |- go.mod
| |- go.sum
| |- task.md
|- 02
| |- input.txt
| |- main.go
| |- go.mod
| |- go.sum
| |- task.md
  • task.md - description of the task
  • main.go - implementation of the solution
  • input.txt - input for the task
  • go.mod, go.sum - files describing Go module's properties (not needed if you don't have dependencies), see official reference

To set up new day (e.g. 5) run:

task day

Run

First day:

cd 01
go run main.go

Answers are printed to stdout

Directories

Path Synopsis
01 module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL