_677_map_sum_pairs

package
v0.0.0-...-4cd11fd Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapSum

type MapSum struct {
	Root *Trie
}

func Constructor

func Constructor() MapSum

func (*MapSum) Insert

func (m *MapSum) Insert(key string, val int)

func (*MapSum) Sum

func (m *MapSum) Sum(prefix string) int

type Trie

type Trie struct {
	Children map[int]*Trie
	Val      int
}

func NewTrie

func NewTrie() *Trie

Jump to

Keyboard shortcuts

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