We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. Data Structures
  3. Multiple Choice
  4. Data Structures MCQ 1

Data Structures MCQ 1

Problem
Submissions
Discussions

If we have a tree of n nodes, how many edges will it have?

1
(n*(n-1))/2
(n*(n-1))
n-1

Need Help?


View discussions
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature