lru here we come

This commit is contained in:
mpaulson 2022-08-09 20:01:51 -06:00
parent 432f88550b
commit 8b4725a628
6 changed files with 34 additions and 3 deletions

View file

@ -35,6 +35,24 @@ const list_interface = {
};
module.exports = {
LRU: {
generic: "<K, V>",
type: "class",
methods: [{
name: "update",
args: "key: K, value: V",
return: "void",
}, {
name: "get",
args: "key: K",
return: "V | undefined",
}],
properties: [{
name: "length",
type: "number",
scope: "public",
}]
},
MinHeap: {
type: "class",
methods: [{