tree

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Metadata []int
	Childs   []*Node
}

func (*Node) SumMeta

func (n *Node) SumMeta() int

func (*Node) Value

func (n *Node) Value() int

type Tree

type Tree struct {
	Root *Node
}

func Build

func Build(ns []int) (*Tree, error)

func (*Tree) SumMeta

func (t *Tree) SumMeta() int

func (*Tree) Value

func (t *Tree) Value() int

Jump to

Keyboard shortcuts

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