Pergunta de entrevista da empresa Tudip Technologies

Tell me difference between graph and tree.

Resposta da entrevista

Sigiloso

30 de set. de 2020

A graph and a tree are both non linear data structures. A graph is a net of interconnected nodes by edges. A tree is a minimally connected graph, it contains a root node from which goes several branches of other trees. Each node under the root of a tree is the root of a sub-tree.

1