From b30f9f36f59d42b78d03340a2ccceaacc80af0b4 Mon Sep 17 00:00:00 2001 From: Rak Laptudirm Date: Thu, 28 Oct 2021 13:52:22 +0530 Subject: [PATCH] chore: fix spelling ./Graphs/DepthFirstSearchRecursive.js:26: recursivly ==> recursively --- Graphs/DepthFirstSearchRecursive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Graphs/DepthFirstSearchRecursive.js b/Graphs/DepthFirstSearchRecursive.js index 473759035..b0a185011 100644 --- a/Graphs/DepthFirstSearchRecursive.js +++ b/Graphs/DepthFirstSearchRecursive.js @@ -23,7 +23,7 @@ class GraphUnweightedUndirected { if (node === value) { return true } // adding the current node to the visited set visited.add(node) - // calling the helper function recursivly for all unvisited nodes + // calling the helper function recursively for all unvisited nodes for (const neighbour of this.connections[node]) { if (!visited.has(neighbour)) { if (this.DFSRecursive(neighbour, value, visited)) { return true }