Top "Tree-traversal" questions

The process of visiting each node in a tree based on certain criterion.

Python: Maximum recursion depth exceeded

I have the following recursion code, at each node I call sql query to get the nodes belong to the …

python recursion max depth tree-traversal
jquery find closest previous sibling with class

here's the rough html I get to work with: <li class="par_cat"></li> <li …

jquery html traversal tree-traversal
Breadth First Vs Depth First

When Traversing a Tree/Graph what is the difference between Breadth First and Depth first? Any coding or pseudocode examples …

algorithm depth-first-search breadth-first-search tree-traversal
How can I get selector from jQuery object

$("*").click(function(){ $(this); // how can I get selector from $(this) ? }); Is there an easy way to get selector from $(this)? …

javascript jquery jquery-selectors tree-traversal
Pre-order to post-order traversal

If the pre-order traversal of a binary search tree is 6, 2, 1, 4, 3, 7, 10, 9, 11, how to get the post-order traversal?

algorithm data-structures tree-traversal binary-search-tree
Traversing through all nodes of a binary tree in Java

Let's say I have a simple binary tree node class, like so: public class BinaryTreeNode { public String identifier = ""; public BinaryTreeNode …

java binary-tree traversal tree-traversal
Inorder tree traversal: Which definition is correct?

I have the following text from an academic course I took a while ago about inorder traversal (they also call …

data-structures binary-tree tree-traversal
Printing BFS (Binary Tree) in Level Order with Specific Formatting

To begin with, this question is not a dup of this one, but builds on it. Taking the tree in …

python algorithm binary-tree breadth-first-search tree-traversal
Traversing a tree of objects in c#

I have a tree that consists of several objects, where each object has a name (string), id (int) and possibly …

c# algorithm tree tree-traversal
Explain Morris inorder tree traversal without using stacks or recursion

Can someone please help me understand the following Morris inorder tree traversal algorithm without using stacks or recursion ? I was …

c++ binary-tree tree-traversal