day04

package
v0.0.0-...-08a54c2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(input string) (string, error)

Part1 returns the id of the guard with the most time spent asleep, multiplied by the minute (between 00:00 and 00:50) during which that guard was most often asleep.

func Part2

func Part2(input string) (string, error)

Part2 returns the ID of the guard who is most frequently asleep at the same minute, multiplied by that minute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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