day02

package
v0.0.0-...-e4aa184 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyHashMap

type MyHashMap struct {
	// contains filtered or unexported fields
}

MyHashMap 自定义HashMap

func Constructor

func Constructor() MyHashMap

Constructor 构造器

func (*MyHashMap) Get

func (m *MyHashMap) Get(key int) int

Get 返回特定的 key 所映射的 value

func (*MyHashMap) Put

func (m *MyHashMap) Put(key int, value int)

Put 向 HashMap 插入一个键值对 (key, value)

func (*MyHashMap) Remove

func (m *MyHashMap) Remove(key int)

Remove 如果映射中存在 key 的映射,则移除 key 和它所对应的 value

Jump to

Keyboard shortcuts

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