Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to find all the leaf nodes in a tree using DFS.

Run the code to see the output here...