In Graph Theory, we say a graph is a Complete Graph, if all of its nodes are connected to evey other nodes in the graph. Examples of complete graphs are shown below.
In this problem we are asked to calculate
, which is the number of connections of a complete graph with n nodes.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6870 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15822 Solvers
-
Find perfect placement of non-rotating dominoes (easier)
390 Solvers
-
Return the first and last characters of a character array
12548 Solvers
-
Given a window, how many subsets of a vector sum positive
873 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!