Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search
It's possible to use a Breadth-first visit and keep track of the level.When a node is visited, it inserted at A[level].A[level] will be created whenever it doesn't exist.Fabiofabioang@gmail.com
It's possible to use a Breadth-first visit and keep track of the level.
ReplyDeleteWhen a node is visited, it inserted at A[level].
A[level] will be created whenever it doesn't exist.
Fabio
fabioang@gmail.com