Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2022 Changes in this version + func GetInput(filename string) ([]string, error) + func GetInputAsSections(filename string) ([][]string, error) + func Volume(p Point3D) int + type Deque interface + Count func() int + IsEmpty func() bool + PeekBottom func() (int, bool) + PeekTop func() (int, bool) + PopBottom func() int + PopTop func() int + PushBottom func(data int) + PushTop func(data int) + String func() string + TakeTop func(int) Deque + Visit func(NodeVisitor) + func NewDeque(input []int) Deque + type IntervalTreeNode struct + CenterIntervalsByMax []*Range + CenterIntervalsByMin []*Range + CenterPoint int + Left *IntervalTreeNode + Right *IntervalTreeNode + func NewIntervalTree(input []*Range) (*IntervalTreeNode, error) + func (i *IntervalTreeNode) Find(query int) []*Range + func (i *IntervalTreeNode) FindRange(query *Range) []*Range + type LinkedList struct + Head *LinkedListNode + Tail *LinkedListNode + func (l *LinkedList) String() string + type LinkedListBuilder struct + func (b *LinkedListBuilder) AddItem(data int) *LinkedListNode + func (b *LinkedListBuilder) GetList() *LinkedList + type LinkedListNode struct + Data int + Next *LinkedListNode + type Matrix struct + func NewMatrix(s []string) *Matrix + func NewMatrixWithoutFrame(s []string) *Matrix + func (m *Matrix) FlipHorizontal() + func (m *Matrix) FlipVertical() + func (m *Matrix) Rotate() + func (m *Matrix) String() string + type NodeVisitor func(int) + type Point3D struct + X int + Y int + Z int + func (p Point3D) Add(other Point3D) Point3D + func (p Point3D) Neighbors() []Point3D + func (p Point3D) Sub(other Point3D) Point3D + type Point4D struct + W int + X int + Y int + Z int + func (p Point4D) Add(other Point4D) Point4D + func (p Point4D) Neighbors() []Point4D + func (p Point4D) Sub(other Point4D) Point4D + type Range struct + Max int + Metadata interface{} + Min int + func (r *Range) Contains(query int) bool + func (r *Range) Overlaps(o *Range) bool + func (r *Range) Valid() bool + type StringStack []string + func (s *StringStack) IsEmpty() bool + func (s *StringStack) Peek() (string, bool) + func (s *StringStack) Pop() (string, bool) + func (s *StringStack) Push(input string)