1.

What is the number of edges present in a complete graph having n vertices?(a) (n*(n+1))/2(b) (n*(n-1))/2(c) n(d) Information given is insufficientThe origin of the question is Graph topic in portion Graph of Data Structures & Algorithms IThis question was addressed to me in an interview.

Answer»

Right answer is (b) (N*(n-1))/2

Easy explanation - Number of WAYS in which every VERTEX can be connected to each other is nC2.



Discussion

No Comment Found

Related InterviewSolutions