o1

package
v0.0.0-...-48c9e09 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const N = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Key int
	Val int
}

type LRU

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

func (*LRU) Get

func (l *LRU) Get(key int) int

func (*LRU) LRUCache

func (l *LRU) LRUCache()

func (*LRU) Put

func (l *LRU) Put(key, val int)

Jump to

Keyboard shortcuts

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