4 ms·
For programmers "understanding" graph theory begins with being able to implement a traversal and knowing how depth-first is different from breadth-first, what i
by gtrubetskoy 9y ago
For programmers "understanding" graph theory begins with being able to implement a traversal and knowing how depth-first is different from breadth-first, what is pre-order, in-order or post-order, what role the stack and the queue play in it, and how it can be done recursively or using a loop.