Documentation ¶
Index ¶
Constants ¶
View Source
const ( START_SHIFT = iota FALL_ASLEEP WAKE_UP )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GuardSchedule ¶
type GuardSchedules ¶
type GuardSchedules struct {
Schedules map[int]*GuardSchedule
}
func (GuardSchedules) GetMostSleepyGuard ¶
func (gs GuardSchedules) GetMostSleepyGuard() int
func (GuardSchedules) RegisterSleepTime ¶
func (GuardSchedules) RegisterSleepTimeFromEvents ¶
func (gs GuardSchedules) RegisterSleepTimeFromEvents(events []GuardEvent)
type Solver ¶
type Solver struct { Events []GuardEvent Schedules GuardSchedules }
func (*Solver) ProcessInput ¶
Click to show internal directories.
Click to hide internal directories.