Tree Edges
Computer Mathematics
Easy
3 views
Problem Description
Given number of nodes n in a tree, print number of edges.
Input Format
One integer n.
Output Format
One integer.
Official Solution
A tree with n nodes has n-1 edges.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!