From b21c993472afd3357ad243dd476c197ccc779e4a Mon Sep 17 00:00:00 2001 From: mpaulson Date: Tue, 19 Jul 2022 20:52:51 -0600 Subject: [PATCH] fix: generation bug --- scripts/dsa.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/dsa.js b/scripts/dsa.js index 3e523ed60..9a17169c6 100644 --- a/scripts/dsa.js +++ b/scripts/dsa.js @@ -196,98 +196,98 @@ module.exports = { type: "fn", fn: "prims", args: "list: WeightedAdjacencyList", - "return": ": WeightedAdjacencyList | null", + return: "WeightedAdjacencyList | null", }, BinarySearchList: { type: "fn", fn: "bs_list", args: "haystack: number[], needle: number", - "return": ": boolean", + return: "boolean", }, LinearSearchList: { type: "fn", fn: "linear_search", args: "haystack: number[], needle: number", - "return": ": boolean", + return: "boolean", }, TwoCrystalBalls: { type: "fn", fn: "two_crystal_balls", args: "breaks: boolean[]", - "return": ": number", + return: "number", }, MazeSolver: { type: "fn", fn: "solve", args: "maze: string[], wall: string, path: string, start: Point, end: Point", - "return": ": Point[]", + return: "Point[]", }, BTPreOrder: { type: "fn", fn: "pre_order_search", args: "head: BinaryNode", - "return": ": number[]", + return: "number[]", }, BTInOrder: { type: "fn", fn: "in_order_search", args: "head: BinaryNode", - "return": ": number[]", + return: "number[]", }, BTPostOrder: { type: "fn", fn: "post_order_search", args: "head: BinaryNode", - "return": ": number[]", + return: "number[]", }, BTBFS: { type: "fn", fn: "bfs", args: "head: BinaryNode", - "return": ": number[]", + return: "number[]", }, CompareBinaryTrees: { type: "fn", fn: "compare", args: "a: BinaryNode, b: BinaryNode", - "return": ": boolean", + return: "boolean", }, DFSOnBST: { type: "fn", fn: "search", args: "head: BinaryNode, needle: number", - "return": ": boolean", + return: "boolean", }, DFSGraphList: { type: "fn", fn: "dfs", args: "graph: WeightedAdjacencyList, source: number, needle: number", - "return": "number[] | null", + return: "number[] | null", }, BFSGraphList: { type: "fn", fn: "bfs", args: "graph: WeightedAdjacencyList, source: number, needle: number", - "return": "number[] | null", + return: "number[] | null", }, BFSGraphMatrix: { type: "fn", fn: "bfs", args: "graph: WeightedAdjacencyMatrix, source: number, needle: number", - "return": "number[] | null", + return: "number[] | null", }, };