Top "Traversal" questions

Traversal is the action of iterating over all the elements in a sequence of elements.

jQuery find parent form

i have this html <ul> <li><form action="#" name="formName"></li> <…

jquery traversal
List directory tree structure in python?

I know that we can use os.walk() to list all sub-directories or all files in a directory. However, I …

python traversal directory-structure
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
Jquery how to find an Object by attribute in an Array

Given I have an array of "purpose" objects: //array of purpose objects: var purposeObjects = [ {purpose: "daily"}, {purpose: "weekly"}, {purpose: "monthly"} ]; (…

jquery collections filter traversal
Post order traversal of binary tree without recursion

What is the algorithm for doing a post order traversal of a binary tree WITHOUT using recursion?

binary-tree traversal non-recursive
jquery find next element with class

I'm trying to find the next element with a class of "error" and hitting a wall. In looking at the …

jquery dom traversal next
Check if an array is sorted, return true or false

I am writing an easy program the just returns true if an array is sorted else false and I keep …

java arrays sorting traversal
jQuery: find next table-row

I have a table, containing rows, contaning cells - and some of them contain an img as follows: <img …

javascript traversal
Find all occurrences of a key in nested dictionaries and lists

I have a dictionary like this: { "id" : "abcde", "key1" : "blah", "key2" : "blah blah", "nestedlist" : [ { "id" : "qwerty", "nestednestedlist" : [ { "id" : "xyz", "keyA" : "…

python recursion dictionary traversal
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