@kevinwin/

routeBetweenNodes

Jest

Given a directed graph, design an algorithm to find out whether there is a route between two nodes.

fork
loading
Files
  • config.json
  • Graph.js
  • routeBetweenNodes.js
  • routeBetweenNodes.test.js
config.json
1
2
3
4
5
{
  "testRegex": ".*\\.test\\.js$",
  "testEnvironment": "node"
}