algorithms
algorithms copied to clipboard
Restructure BFS/tree.js
trafficstars
I made three changes:
- Adding
Gto the parameter list of theBFSfunction - Adding JSDoc to the
BFSfunction - Moving the tracer-related code into the
BFSfunction
The restructured code behaves the same as the original code on https://algorithm-visualizer.org/.