S
Sudip_inn
Guest
suppose i have a Tree Node say Node 1 and Node1 has one node Node2 and Node2 has 3 child Node called Child1,Child2 and Child3.
now i want to create a function where i will send immediate parent node and child node. function return the ordinal position of child node respect to its immediate parent.
say i will pass Node2 as immediate parent node and will pass child2. so function should return 2 because child2 is second child of Node 2.
how to create that kind of function?
thanks
Continue reading...
now i want to create a function where i will send immediate parent node and child node. function return the ordinal position of child node respect to its immediate parent.
say i will pass Node2 as immediate parent node and will pass child2. so function should return 2 because child2 is second child of Node 2.
how to create that kind of function?
thanks
Continue reading...