Beginner Data Structures & Algorithms
Q22 / 100

What is the difference between a tree and a graph?

Correct! Well done.

Incorrect.

The correct answer is B) A tree is a connected acyclic graph with n-1 edges for n nodes

B

Correct Answer

A tree is a connected acyclic graph with n-1 edges for n nodes

Explanation

A tree is a special case of a graph: it is connected, has no cycles, and has exactly n-1 edges for n vertices.

Progress
22/100