feat: quick update to limgachine.

This commit is contained in:
mpaulson 2022-07-30 20:02:26 -06:00
parent 60d75e1996
commit 29ba2cd3ab
11 changed files with 28 additions and 15 deletions

View file

@ -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",
},

View file

@ -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 {