Given a class:
public class Node
{
public List nodes[];
public Node right; //NULL for now
}
What's the best way to fill the "right" element of all tree nodes?
N
|
|
/ | \
/ | \
C1--->C2-->C3
/ \ \
/ \ \
C11->C12 -----> C31
node.right
? You are likely asking something harder than that - could you explain a bit more? – user40980 Sep 3 '15 at 0:32