An exploration of several data structures
To locally:
- Clone the repo from github.
- Run
yarn
ornpm install
to install all packages from the package.json. - Install
jest
globally by runningnpm install jest -g
. - Run tests by running
jest --watch
. - If you wish to use the Chrome debugger, run
yarn start
. This will open up a Chrome tab where you can inspect and use the debugger tools. You can create instances of the classes in thesrc
folder files. For example: In/src/graphs.js
, you can create a graph instance like:
let graphInstance = new Graph();
graph.addNode(1);
graph.addNode(2);
graph.addNode(3);
graph.addEdge(1, 2);
graph.addEdge(1, 3)
- Check out solutions in
/solutions
folder. There are many ways to implement the methods in each of the data structure classes, but these are generally what I found easiest.