3 ms·
I used to feel like the author of this post, but trees have come up at each of my last few jobs. BFS is a trivial algorithm and you really should know it. It i
by jb3689 8y ago
I used to feel like the author of this post, but trees have come up at each of my last few jobs.
BFS is a trivial algorithm and you really should know it. It is only a few lines.
Do you work with things that have dependencies? Do you work with hierarchical data? What about hierachical apis? Tree traversal is a powerful tool, and not knowing how to use trees is a sign you may take the stick-and-rock route when it comes to solving problems