Check if given graph is tree

1 min read

https://www.geeksforgeeks.org/check-given-graph-tree/

Sum of nodes on the longest path from root to leaf node
Find largest subtree sum in a tree