Monday, December 5, 2016

Algorithm: Print all nodes at distance k from a give node

Dec. 5, 2015

Julia likes to do some research on this algorithm:

http://www.geeksforgeeks.org/print-nodes-distance-k-given-node-binary-tree/

Recently, she came cross this algorithm through code review:

http://codereview.stackexchange.com/questions/60765/print-all-nodes-that-are-at-distance-k-from-a-leaf-node/60894#60894

a blog:
Another source code reference:
http://k2code.blogspot.ca/2015/09/print-all-nodes-that-are-at-distance-k.html

http://www.geeksforgeeks.org/print-nodes-at-k-distance-from-root/

Do some research on this type of algorithm.




No comments:

Post a Comment