Home Reference Source
import {LRUCache} from 'dsa-gfg/src/queue/lru-cache.ts'
public class | source

LRUCache

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

get(x: number)

public

set(x: T, y: T)

Public Constructors

public constructor() source

Public Methods

public get(x: number) source

Params:

NameTypeAttributeDescription
x number

public set(x: T, y: T) source

Params:

NameTypeAttributeDescription
x T
y T