Define ancestor and descendant ?



Define ancestor and descendant ?..

Answer / Kumud Singh

An ancestor of a node is any node on the path from the root to that node. A descendant, in contrast, is any node reachable from another node by following edges towards the root.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What actions are performed when a function is called?

1 Answers  


Tell me the difference between structure and array?

1 Answers   NIIT,


What is insertion sort technique?

1 Answers  


Explain binary representation?

1 Answers  


Is quicksort divide and conquer?

1 Answers  


What is a weighted graph?

1 Answers  


Can we use Generics with the array?

1 Answers  


What is difference between list and array?

1 Answers  


what is a balanced tree.

1 Answers  


What is a sorting algorithm in data structure?

1 Answers  


Do you know how to find if linked list has loop?

1 Answers  


Does set allow null values?

1 Answers  


Categories