feat: quick update to limgachine.
This commit is contained in:
parent
60d75e1996
commit
29ba2cd3ab
11 changed files with 28 additions and 15 deletions
|
|
@ -223,7 +223,7 @@ module.exports = {
|
|||
MazeSolver: {
|
||||
type: "fn",
|
||||
fn: "solve",
|
||||
args: "maze: string[], wall: string, path: string, start: Point, end: Point",
|
||||
args: "maze: string[], wall: string, start: Point, end: Point",
|
||||
return: "Point[]",
|
||||
},
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ module.exports = {
|
|||
|
||||
DFSOnBST: {
|
||||
type: "fn",
|
||||
fn: "search",
|
||||
fn: "dfs",
|
||||
args: "head: BinaryNode<number>, needle: number",
|
||||
return: "boolean",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@ function create_function(name, item) {
|
|||
|
||||
config.dsa.forEach(ds => {
|
||||
const item = dsa[ds];
|
||||
if (!item) {
|
||||
throw new Error(`algorithm ${ds} could not be found`);
|
||||
}
|
||||
if (item.type === "class") {
|
||||
create_class(ds, item);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue