leetcode146

package
v0.0.0-...-5261e5c Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LRUCache

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

LRUCache - cache struct

func Constructor

func Constructor(capacity int) LRUCache

Constructor - create cache

func (*LRUCache) Get

func (cache *LRUCache) Get(key int) int

Get - get a value

func (*LRUCache) Put

func (cache *LRUCache) Put(key int, value int)

Put - put a value

Jump to

Keyboard shortcuts

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