0

Can someone help me to make a trees' bfs without using any javas' library?

use bfs methode to show the datas of the tree

17th Dec 2018, 10:46 AM
Tio
Tio - avatar
1 Resposta
+ 2
This is a reasonably good description of the task. You can create your own classes to implement the data structures needed so no libraries required. Making a tree from scratch is a fun task plus a huge learning experience. I've never played with the bfs algorithm and, if I did, I would have traversed the tree for each level so I learned a more efficient way of doing it. I might build the list into my tree depending on my need. https://www.cs.bu.edu/teaching/c/tree/breadth-first/
18th Dec 2018, 1:48 AM
John Wells
John Wells - avatar